Versions in this module Expand all Collapse all v1 v1.0.0 Dec 18, 2024 Changes in this version + const PublicKeyLength + func PrivateKeyValidate(b []byte) (bool, *errors.Error) + func PublicKeyIsOnCurve(b []byte) bool + func ValidateNineoraID(idStr string) bool + type Address string + func (addr Address) IsEmpty() bool + func (addr Address) PublicKey() (PublicKey, *errors.Error) + func (addr Address) String() string + type Key struct + Private PrivateKey + Public PublicKey + func NewKey() (*Key, *errors.Error) + func (k *Key) Address() Address + type NineoraID string + func NineoraIdFromUint64(idUint64 uint64) NineoraID + func (n NineoraID) IsValid() bool + type PrivateKey []byte + func PrivateKeyFromBase58(pri string) (PrivateKey, *errors.Error) + func (k PrivateKey) PublicKey() PublicKey + func (k PrivateKey) Sign(payload []byte) (Signature, *errors.Error) + func (k PrivateKey) ToBase58() string + func (k PrivateKey) Validate() *errors.Error + type PublicKey [PublicKeyLength]byte + func PublicKeyFromBase58(in string) (out PublicKey, err *errors.Error) + func PublicKeyFromBytes(in []byte) (out PublicKey, err *errors.Error) + func (p PublicKey) Address() Address + func (p PublicKey) ToBase58() string + func (p PublicKey) Verify(message []byte, signature Signature) bool + type Signature [64]byte + func (s *Signature) HexEncode() SignatureBase58 + type SignatureBase58 string + func (s *SignatureBase58) Decode() (*Signature, *errors.Error) + type Signer struct + PrivateKey PrivateKey + type Wallet struct + PrivateKey PrivateKey