Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ErrSourceNotMatch = errors.New("signature source not match") ErrSigTypeNotSupport = errors.New("signature type not support") ErrGenerateKeyFail = errors.New("generate key fail") ErrKeyTypeNotSupport = errors.New("key type not support") ErrSigPubKeyNotMatch = errors.New("count of signature and public key not match") )
Functions ¶
This section is empty.
Types ¶
type Engine ¶
type Engine interface { GenKey(params ...interface{}) (*PrivateKey, *PublicKey, error) Sign([]byte, PrivateKey) (*Signature, error) Verify([]byte, Signature) bool }
type PrivateKey ¶
Click to show internal directories.
Click to hide internal directories.