Versions in this module Expand all Collapse all v0 v0.1.1 Aug 16, 2018 v0.1.0 May 1, 2018 Changes in this version + type Context interface + GetAlgorithmName func() string + GetPublicKey func(private_key PrivateKey) PublicKey + NewRandomPrivateKey func() PrivateKey + Sign func(message []byte, private_key PrivateKey) []byte + Verify func(signature []byte, message []byte, public_key PublicKey) bool + func CreateContext(algorithmName string) Context + func NewSecp256k1Context() Context + type CryptoFactory struct + func NewCryptoFactory(context Context) *CryptoFactory + func (self *CryptoFactory) GetContext() Context + func (self *CryptoFactory) NewSigner(private_key PrivateKey) *Signer + type PrivateKey interface + AsBytes func() []byte + AsHex func() string + GetAlgorithmName func() string + func NewSecp256k1PrivateKey(private_key []byte) PrivateKey + type PublicKey interface + AsBytes func() []byte + AsHex func() string + GetAlgorithmName func() string + func NewSecp256k1PublicKey(public_key []byte) PublicKey + type Secp256k1Context struct + func (self *Secp256k1Context) GetAlgorithmName() string + func (self *Secp256k1Context) GetPublicKey(private_key PrivateKey) PublicKey + func (self *Secp256k1Context) NewRandomPrivateKey() PrivateKey + func (self *Secp256k1Context) Sign(message []byte, private_key PrivateKey) []byte + func (self *Secp256k1Context) Verify(signature []byte, message []byte, public_key PublicKey) bool + type Secp256k1PrivateKey struct + func PemToSecp256k1PrivateKey(pem string, password string) (*Secp256k1PrivateKey, error) + func (self *Secp256k1PrivateKey) AsBytes() []byte + func (self *Secp256k1PrivateKey) AsHex() string + func (self *Secp256k1PrivateKey) GetAlgorithmName() string + type Secp256k1PublicKey struct + func (self *Secp256k1PublicKey) AsBytes() []byte + func (self *Secp256k1PublicKey) AsHex() string + func (self *Secp256k1PublicKey) GetAlgorithmName() string + type Signer struct + func (self *Signer) GetPublicKey() PublicKey + func (self *Signer) Sign(message []byte) []byte