Versions in this module Expand all Collapse all v1 v1.0.8 Jan 14, 2025 Changes in this version + const AddressLength + const DerivationPathEd25519 + const DerivationPathSecp256k1 + const FirstHardenedIndex + const SigntureFlagEd25519 + const SigntureFlagSecp256k1 + var ErrInvalidPath = errors.New("invalid derivation path") + var ErrNoPublicDerivation = errors.New("no public derivation for ed25519") + type Key struct + ChainCode []byte + Key []byte + func DeriveForPath(path string, seed []byte) (*Key, error) + func NewMasterKey(seed []byte) (*Key, error) + func (k *Key) Derive(i uint32) (*Key, error) + func (k *Key) PublicKey() ([]byte, error) + func (k *Key) RawSeed() [32]byte + type SignedMessageSerializedSig struct + Message string + Signature string + type Signer struct + Address string + PriKey ed25519.PrivateKey + PubKey ed25519.PublicKey + func NewSigner(seed []byte) *Signer + func NewSignertWithMnemonic(mnemonic string) (*Signer, error) + func (s *Signer) SignMessage(data string, scope constant.IntentScope) (*SignedMessageSerializedSig, error) + func (s *Signer) SignPersonalMessage(message string) (*SignedMessageSerializedSig, error) + func (s *Signer) SignTransaction(b64TxBytes string) (*models.SignedTransactionSerializedSig, error)