Versions in this module Expand all Collapse all v1 v1.1.0 Apr 11, 2024 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") + func IntentWithScope(intentScope IntentScope) []int + type AppId int + const Sui + type IntentScope int + const CheckpointSummary + const PersonalMessage + const TransactionData + const TransactionEffects + type IntentVersion int + const V0 + 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 Signer struct + Address string + PriKey ed25519.PrivateKey + PubKey ed25519.PublicKey + func NewSigner(seed []byte) *Signer + func NewSignertWithMnemonic(mnemonic string) (*Signer, error)