Versions in this module Expand all Collapse all v1 v1.0.0 Jul 2, 2021 Changes in this version + const N + const P + const R + var KeyCases = []Ktype + func PublicKeyToAddress(p *crypto.ECPoint, version byte) string + func PublicKeyToScriptHash(p *crypto.ECPoint) *helper.UInt160 + func ToECDsa(key []byte) *ecdsa.PrivateKey + func VerifyMultiSig(message []byte, signatures [][]byte, pubKeys []crypto.ECPoint) bool + func VerifySignature(message []byte, signature []byte, p *crypto.ECPoint) bool + type KeyPair struct + PrivateKey []byte + PublicKey *crypto.ECPoint + func GenerateKeyPair() (*KeyPair, error) + func NewKeyPair(privateKey []byte) (*KeyPair, error) + func NewKeyPairFromNEP2(nep2 string, passphrase string, version byte, N, R, P int) (*KeyPair, error) + func NewKeyPairFromWIF(wif string) (*KeyPair, error) + func (p *KeyPair) CompareTo(q *KeyPair) int + func (p *KeyPair) ExistsIn(list []KeyPair) bool + func (p *KeyPair) Export() string + func (p *KeyPair) ExportWithPassword(password string, version byte, N, R, P int) (string, error) + func (p *KeyPair) Sign(message []byte) ([]byte, error) + func (p *KeyPair) String() string + func (p *KeyPair) ToECDsa() *ecdsa.PrivateKey + type KeyPairSlice []KeyPair + func (kps KeyPairSlice) Len() int + func (kps KeyPairSlice) Less(i, j int) bool + func (kps KeyPairSlice) Swap(i, j int) + type Ktype struct + Address string + Nep2key string + Passphrase string + PrivateKey string + PublicKey string + ScriptHash string + Wif string