@textile/hub > Identity > sign
Identity.sign() method
Sign the message using this identity 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>