Documentation ¶
Index ¶
Constants ¶
View Source
const ( // TextileAccountPrefix is a prefix for Textile key pairs derivation. TextileAccountPrefix = "m/44'/406'" // TextilePrimaryAccountPath is a derivation path of the primary account. TextilePrimaryAccountPath = "m/44'/406'/0'" // TextileAccountPathFormat is a path format used for Textile key pair // derivation as described in SEP-00XX. Use with `fmt.Sprintf` and `DeriveForPath`. TextileAccountPathFormat = "m/44'/406'/%d'" // FirstHardenedIndex is the index of the first hardened key. FirstHardenedIndex = uint32(0x80000000) )
Variables ¶
View Source
var ( ErrInvalidPath = fmt.Errorf("invalid derivation path") ErrNoPublicDerivation = fmt.Errorf("no public derivation for ed25519") )
View Source
var ErrInvalidWordCount = fmt.Errorf("invalid word count (must be 12, 15, 18, 21, or 24)")
Functions ¶
func IsValidPath ¶ added in v0.1.10
IsValidPath check whether or not the path has valid segments.
Types ¶
type Key ¶ added in v0.1.10
func DeriveForPath ¶ added in v0.1.10
DeriveForPath derives key for a path in BIP-44 format and a seed. Ed25119 derivation operated on hardened keys only.
func NewMasterKey ¶ added in v0.1.10
NewMasterKey generates a new master key from seed.
type Wallet ¶
type Wallet struct {
RecoveryPhrase string
}
Wallet is a BIP32 Hierarchical Deterministic Wallet based on stellar's implementation of https://github.com/satoshilabs/slips/blob/master/slip-0010.md, https://github.com/stellar/stellar-protocol/pull/63
func NewWalletFromRecoveryPhrase ¶ added in v0.1.10
type WordCount ¶ added in v0.1.10
type WordCount int
func NewWordCount ¶ added in v0.1.10
func (WordCount) EntropySize ¶ added in v0.1.10
Click to show internal directories.
Click to hide internal directories.