Versions in this module Expand all Collapse all v0 v0.0.3 Sep 11, 2024 Changes in this version + const BitsPerWord + const CipherSeedVersion + const CipherTextExpansion + const DecipheredCipherSeedSize + const EncipheredCipherSeedSize + const EntropySize + const NumMnemonicWords + const SaltSize + var BitcoinGenesisDate = time.Unix(1231006505, 0) + var DefaultWordList = strings.Split(englishWordList, "\n") + var ErrIncorrectMnemonic = fmt.Errorf(...) + var ErrIncorrectVersion = fmt.Errorf("wrong seed version") + var ErrInvalidPass = fmt.Errorf("invalid passphrase") + var ReverseWordMap map[string]int + type CipherSeed struct + Birthday uint16 + Entropy [EntropySize]byte + InternalVersion uint8 + func New(internalVersion uint8, entropy *[EntropySize]byte, now time.Time, ...) (*CipherSeed, error) + func (c *CipherSeed) BirthdayTime() time.Time + func (c *CipherSeed) Encipher(pass []byte) ([EncipheredCipherSeedSize]byte, error) + func (c *CipherSeed) ToMnemonic(pass []byte) (Mnemonic, error) + type ErrUnknownMnemonicWord struct + Index uint8 + Word string + func (e ErrUnknownMnemonicWord) Error() string + type Mnemonic [NumMnemonicWords]string + func (m *Mnemonic) ChangePass(oldPass, newPass []byte) (Mnemonic, error) + func (m *Mnemonic) Decipher(pass []byte) ([DecipheredCipherSeedSize]byte, [SaltSize]byte, error) + func (m *Mnemonic) ToCipherSeed(pass []byte) (*CipherSeed, error) + type SeedOptionModifier func(*SeedOptions) + func WithRandomnessSource(src io.Reader) SeedOptionModifier + type SeedOptions struct + func DefaultOptions() *SeedOptions