Documentation ¶
Index ¶
Constants ¶
View Source
const ( SigntureFlagEd25519 = 0x0 SigntureFlagSecp256k1 = 0x1 AddressLength = 64 DerivationPathEd25519 = `m/44'/784'/0'/0'/0'` DerivationPathSecp256k1 = `m/54'/784'/0'/0/0` )
View Source
const (
FirstHardenedIndex = uint32(0x80000000)
)
Variables ¶
View Source
var ( ErrInvalidPath = errors.New("invalid derivation path") ErrNoPublicDerivation = errors.New("no public derivation for ed25519") )
Functions ¶
func IntentWithScope ¶
func IntentWithScope(intentScope IntentScope) []int
Types ¶
type IntentScope ¶
type IntentScope int
const ( TransactionData IntentScope = 0 TransactionEffects IntentScope = 1 CheckpointSummary IntentScope = 2 PersonalMessage IntentScope = 3 )
type Key ¶
func DeriveForPath ¶
DeriveForPath derives key for a path in BIP-44 format and a seed. Ed25119 derivation operated on hardened keys only.
func NewMasterKey ¶
NewMasterKey generates a new master key from seed.
Click to show internal directories.
Click to hide internal directories.