@textile/hub > PrivateKey > sign
PrivateKey.sign() method
Sign the message using this private key and return the signature.
Signature:
sign(data: Uint8Array): Promise<Uint8Array>;
Parameters
Parameter | Type | Description |
---|---|---|
data | Uint8Array | The data (raw bytes) to sign. |
Returns:
Promise<Uint8Array>