Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Seed ¶
type Seed struct {
// contains filtered or unexported fields
}
Unencrypted seed, used for deriving keys, this should be cleared when not needed using seed.Zero().
func RandomSeed ¶
Generate a random seed with a birthday of right now
func (*Seed) Birthday ¶
Provide the day when the seed was first created, useful for determining how far back in time you must search for possible payments to the wallet.
func (*Seed) Bytes ¶
Bytes returns the secret seed, 19 bytes long including the birthday bytes which provide a small amount of additional entropy.
type SeedEnc ¶
type SeedEnc struct {
Bytes [encByteLen]byte
}
func SeedFromWords ¶
SeedFromWords creates an encrypted seed from a set of words, the language is auto-detected.
func (*SeedEnc) Decrypt ¶
Decrypt converts a SeedEnc into a Seed (decrypted) If no passphrase is required by the seed (see: seed.NeedsPassphrase()), the passphrase is not used. If the decrypted seed birthday is in the future or so far in the past as to be before the seed derivation code was written, this function will result in an error, unless force is true.
func (*SeedEnc) NeedsPassphrase ¶
NeedsPassphrase returns true if the seed requires a passphrase in order to decrypt.