Versions in this module Expand all Collapse all v1 v1.0.0 May 26, 2022 Changes in this version + var PrivKeyMapper = data.NewMapper(PrivKey{}) + var PubKeyMapper = data.NewMapper(PubKey{}) + var SignatureMapper = data.NewMapper(Signature{}) + func CRandBytes(numBytes int) []byte + func MixEntropy(seedBytes []byte) + func Sha256(bytes []byte) []byte + type PrivKey struct + func PrivKeyFromBytes(privKeyBytes []byte) (privKey PrivKey, err error) + func (h *PrivKey) UnmarshalJSON(data []byte) (err error) + func (h PrivKey) MarshalJSON() ([]byte, error) + func (h PrivKey) Unwrap() PrivKeyInner + type PrivKeyEd25519 [64]byte + func GenPrivKeyEd25519() PrivKeyEd25519 + func (hi PrivKeyEd25519) Wrap() PrivKey + func (p *PrivKeyEd25519) UnmarshalJSON(enc []byte) error + func (p PrivKeyEd25519) MarshalJSON() ([]byte, error) + func (privKey PrivKeyEd25519) PubKey() PubKey + func (privKey PrivKeyEd25519) Sign(msg []byte) Signature + func (privKey PrivKeyEd25519) String() string + type PrivKeyInner interface + PubKey func() PubKey + Sign func(msg []byte) Signature + Wrap func() PrivKey + type PubKey struct + func (h *PubKey) UnmarshalJSON(data []byte) (err error) + func (h PubKey) MarshalJSON() ([]byte, error) + func (h PubKey) Unwrap() PubKeyInner + type PubKeyEd25519 [32]byte + func (hi PubKeyEd25519) Wrap() PubKey + func (p *PubKeyEd25519) UnmarshalJSON(enc []byte) error + func (p PubKeyEd25519) MarshalJSON() ([]byte, error) + func (pubKey PubKeyEd25519) Equals(other PubKey) bool + func (pubKey PubKeyEd25519) KeyString() string + func (pubKey PubKeyEd25519) String() string + func (pubKey PubKeyEd25519) VerifyBytes(msg []byte, sig_ Signature) bool + type PubKeyInner interface + Equals func(PubKey) bool + KeyString func() string + VerifyBytes func(msg []byte, sig Signature) bool + Wrap func() PubKey + type Signature struct + func SignatureFromBytes(sigBytes []byte) (sig Signature, err error) + func (h *Signature) UnmarshalJSON(data []byte) (err error) + func (h Signature) MarshalJSON() ([]byte, error) + func (h Signature) Unwrap() SignatureInner + type SignatureEd25519 [64]byte + func (hi SignatureEd25519) Wrap() Signature + func (sig *SignatureEd25519) UnmarshalJSON(enc []byte) error + func (sig SignatureEd25519) Bytes() []byte + func (sig SignatureEd25519) MarshalJSON() ([]byte, error) + type SignatureInner interface + Bytes func() []byte + Wrap func() Signature