@textile/hub > PublicKey > verify
PublicKey.verify() method
Verifies the signature for the data and returns true if verification succeeded or false if it failed.
Signature:
verify(data: Uint8Array, signature: Uint8Array): Promise<boolean>;
Parameters
Parameter | Type | Description |
---|---|---|
data | Uint8Array | The data to use for verification. |
signature | Uint8Array |
Returns:
Promise<boolean>