Public interface
Public is any entity associated with a given Identity that is capable of verifying a signature produced by said identity. In most cases, a public key will be obtained as a property of an object implementing the Identity and/or Private key interface.
Signature:
export interface Public
Properties
Property | Type | Description |
---|---|---|
bytes | Uint8Array | Return the protobuf-encoded bytes of this public key. |
Methods
Method | Description |
---|---|
verify(data, sig) | Verifies the signature for the data and returns true if verification succeeded or false if it failed. |