Versions in this module Expand all Collapse all v0 v0.0.1 Nov 4, 2024 Changes in this version + const ACCOUNT_ONE + const ACCOUNT_ZERO + const NaN + const ROOT + func Base58Decode(b, alphabet string) ([]byte, error) + func Base58Encode(b []byte, alphabet string) string + func DoubleSha256(b []byte) []byte + func NewECDSAKey(seed []byte) (*ecdsaKey, error) + func NewEd25519Key(seed []byte) (*ed25519key, error) + func Sha256RipeMD160(b []byte) []byte + func Sha512(b []byte) []byte + func Sha512Half(b []byte) []byte + func Sha512Quarter(b []byte) []byte + func Sign(privateKey, hash, msg []byte) ([]byte, error) + func Verify(publicKey, hash, msg, signature []byte) (bool, error) + type Hash interface + Clone func() Hash + MarshalText func() ([]byte, error) + Payload func() []byte + PayloadTrimmed func() []byte + String func() string + Value func() *big.Int + Version func() HashVersion + func AccountId(key Key, sequence *uint32) (Hash, error) + func AccountPrivateKey(key Key, sequence *uint32) (Hash, error) + func AccountPublicKey(key Key, sequence *uint32) (Hash, error) + func GenerateFamilySeed(password string) (Hash, error) + func NewAccountId(b []byte) (Hash, error) + func NewAccountPrivateKey(b []byte) (Hash, error) + func NewAccountPublicKey(b []byte) (Hash, error) + func NewFamilySeed(b []byte) (Hash, error) + func NewNodePrivateKey(b []byte) (Hash, error) + func NewNodePublicKey(b []byte) (Hash, error) + func NewRippleHash(s string) (Hash, error) + func NewRippleHashCheck(s string, version HashVersion) (Hash, error) + func NodePrivateKey(key Key) (Hash, error) + func NodePublicKey(key Key) (Hash, error) + type HashVersion byte + const ALPHABET + const RIPPLE_ACCOUNT_ID + const RIPPLE_ACCOUNT_PRIVATE + const RIPPLE_ACCOUNT_PUBLIC + const RIPPLE_FAMILY_SEED + const RIPPLE_NODE_PRIVATE + const RIPPLE_NODE_PUBLIC + type Key interface + Id func(*uint32) []byte + Private func(*uint32) []byte + Public func(*uint32) []byte