Package derivation provides functions for ed25519 key derivation as described in: https://github.com/satoshilabs/slips/blob/master/slip-0010.md
const ( // StellarAccountPrefix is a prefix for Stellar key pairs derivation. StellarAccountPrefix = "m/44'/148'" // StellarPrimaryAccountPath is a derivation path of the primary account. StellarPrimaryAccountPath = "m/44'/148'/0'" // StellarAccountPathFormat is a path format used for Stellar key pair // derivation as described in SEP-00XX. Use with `fmt.Sprintf` and `DeriveForPath`. StellarAccountPathFormat = "m/44'/148'/%d'" // FirstHardenedIndex is the index of the first hardened key. FirstHardenedIndex = uint32(0x80000000) )
This section is empty.
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.
PublicKey returns public key for a derived private key.