Identity interface
Identity represents an entity capable of signing a message. This is a simple "private key" interface that must be capable of returning the associated "public key" for verification. In many cases, the Identity will just be a private key.
Signature:
export interface Identity
Properties
Property | Type | Description |
---|---|---|
privKey | Uint8Array | Raw private key bytes of this identity |
public | Public | Get the public key associated with this identity. This can be any object that satisfies the Public interface. |
Methods
Method | Description |
---|---|
sign(data) | Sign the message using this identity and return the signature. |