Constructor
new Verifier(publicKey)
Creates a verifier from a public key.
Parameters:
Name | Type | Description |
---|---|---|
publicKey |
PublicKey | Public key. |
- Source:
Methods
verify(message, signature) → {boolean}
Verifies a message signature.
Parameters:
Name | Type | Description |
---|---|---|
message |
Uint8Array | Message to verify. |
signature |
Signature | Signature to verify. |
- Source:
Returns:
true if the message signature verifies.
- Type
- boolean
verify(message, signature) → {boolean}
Verifies a message signature.
Parameters:
Name | Type | Description |
---|---|---|
message |
Uint8Array | Message to verify. |
signature |
Signature | Signature to verify. |
- Source:
Returns:
true if the message signature verifies.
- Type
- boolean