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.
export interface Identity
|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.|
|sign(data)||Sign the message using this identity and return the signature.|