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