Versions in this module Expand all Collapse all v0 v0.4.1 Dec 25, 2018 v0.4.0 Dec 24, 2018 Changes in this version + const Ed25519PrivKeyAminoRoute + const Ed25519PubKeyAminoRoute + const PrivateKeySize + const PublicKeySize + const SignatureSize + func MakePublicKey(privateKey *[64]byte) (publicKey *[32]byte) + func Sha256(bytes []byte) []byte + func Sign(privateKey *[PrivateKeySize]byte, message []byte) *[SignatureSize]byte + func Sum(bz []byte) []byte + func Verify(publicKey *[PublicKeySize]byte, message []byte, sig *[SignatureSize]byte) bool + type Address = HexBytes + type HexBytes []byte + func (bz HexBytes) Bytes() []byte + type PrivKey interface + Bytes func() []byte + PubKey func() PubKey + Sign func(msg []byte) ([]byte, error) + type PrivKeyEd25519 [64]byte + func GenPrivKeyFromSecret(secret []byte) PrivKeyEd25519 + func (privKey PrivKeyEd25519) Bytes() []byte + func (privKey PrivKeyEd25519) PubKey() PubKey + func (privKey PrivKeyEd25519) Sign(msg []byte) ([]byte, error) + type PubKey interface + Address func() Address + Bytes func() []byte + VerifyBytes func(msg []byte, sig []byte) bool + type PubKeyEd25519 [32]byte + func (pubKey PubKeyEd25519) Address() Address + func (pubKey PubKeyEd25519) Bytes() []byte + func (pubKey PubKeyEd25519) VerifyBytes(msg []byte, sig_ []byte) bool