Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Sign ¶
Sign returns the signature of data using privKey
func Verify ¶
Verify check the signature of data using pubKey
Types ¶
type Signer ¶
type Signer interface { //get signer's private key PrivKey() keypair.PrivateKey //get signer's public key PubKey() keypair.PublicKey Scheme() signature.SignatureScheme }
Signer is the abstract interface of user's information(Keys) for signing data.
Click to show internal directories.
Click to hide internal directories.