Verifier

Verifier

Verifies signatures signed by a single key pair.

Constructor

new Verifier(publicKey)

Description:
  • Creates a verifier from a public key.

Source:
Parameters:
Name Type Description
publicKey PublicKey

Public key.

Classes

Verifier
Verifier

Members

publicKey :PublicKey

Description:
  • Public key used for signature verification.

Source:

Public key used for signature verification.

Type:

publicKey :PublicKey

Description:
  • Public key used for signature verification.

Source:

Public key used for signature verification.

Type:

Methods

verify(message, signature) → {boolean}

Description:
  • Verifies a message signature.

Source:
Parameters:
Name Type Description
message Uint8Array

Message to verify.

signature Signature

Signature to verify.

Returns:

true if the message signature verifies.

Type
boolean

verify(message, signature) → {boolean}

Description:
  • Verifies a message signature.

Source:
Parameters:
Name Type Description
message Uint8Array

Message to verify.

signature Signature

Signature to verify.

Returns:

true if the message signature verifies.

Type
boolean

Verifier Verifier

Verifies signatures signed by a single key pair.

Constructor

new Verifier(publicKey)

Description:
  • Creates a verifier from a public key.

Source:
Parameters:
Name Type Description
publicKey PublicKey

Public key.

Classes

Verifier
Verifier

Members

publicKey :PublicKey

Description:
  • Public key used for signature verification.

Source:

Public key used for signature verification.

Type:

publicKey :PublicKey

Description:
  • Public key used for signature verification.

Source:

Public key used for signature verification.

Type:

Methods

verify(message, signature) → {boolean}

Description:
  • Verifies a message signature.

Source:
Parameters:
Name Type Description
message Uint8Array

Message to verify.

signature Signature

Signature to verify.

Returns:

true if the message signature verifies.

Type
boolean

verify(message, signature) → {boolean}

Description:
  • Verifies a message signature.

Source:
Parameters:
Name Type Description
message Uint8Array

Message to verify.

signature Signature

Signature to verify.

Returns:

true if the message signature verifies.

Type
boolean