github.com/annchain/OG@v0.0.9/deprecated/ogcrypto_interface/signer.go (about) 1 package ogcrypto_interface 2 3 type ISigner interface { 4 GetCryptoType() CryptoType 5 Sign(privKey PrivateKey, msg []byte) Signature 6 PubKey(privKey PrivateKey) PublicKey 7 Verify(pubKey PublicKey, signature Signature, msg []byte) bool 8 RandomKeyPair() (publicKey PublicKey, privateKey PrivateKey) 9 Encrypt(publicKey PublicKey, m []byte) (ct []byte, err error) 10 Decrypt(p PrivateKey, ct []byte) (m []byte, err error) 11 PublicKeyFromBytes(b []byte) PublicKey 12 CanRecoverPubFromSig() bool 13 }