Documentation
¶
Index ¶
- Constants
- func CreateEntropyRandomly(entropySize int) ([]byte, error)
- func Ed25519DeriveSk(seed []byte, path []uint32) ([]byte, error)
- func EntropyToMnemonic(entropy []byte) (string, error)
- func MnemonicToSeed(mnemonic string, password string) ([]byte, error)
- func Secp256k1DeriveSk(seed []byte, path []uint32) ([]byte, error)
- type DigestUnmatchedError
- type InvalidEntropyBitsError
- type InvalidPathError
- type InvalidSentenceBitsError
- type WordNotExistError
Constants ¶
View Source
const ( BitsPerByte = 8 BitsPerWord = 11 EntropyBitsStep = 32 EntropyBitsMin = 4 * EntropyBitsStep EntropyBitsMax = 4 * EntropyBitsStep SentenceBitsStep = 33 SentenceBitsMin = 4 * SentenceBitsStep SentenceBitsMax = 8 * SentenceBitsStep )
View Source
const (
FirstHardenedChild = uint32(0x80000000)
)
Variables ¶
This section is empty.
Functions ¶
func CreateEntropyRandomly ¶
func EntropyToMnemonic ¶
Types ¶
type DigestUnmatchedError ¶
type DigestUnmatchedError struct {
// contains filtered or unexported fields
}
func (DigestUnmatchedError) Error ¶
func (e DigestUnmatchedError) Error() string
type InvalidEntropyBitsError ¶
type InvalidEntropyBitsError struct {
// contains filtered or unexported fields
}
func (InvalidEntropyBitsError) Error ¶
func (e InvalidEntropyBitsError) Error() string
type InvalidPathError ¶
type InvalidPathError struct {
// contains filtered or unexported fields
}
func (InvalidPathError) Error ¶
func (e InvalidPathError) Error() string
type InvalidSentenceBitsError ¶
type InvalidSentenceBitsError struct {
// contains filtered or unexported fields
}
func (InvalidSentenceBitsError) Error ¶
func (e InvalidSentenceBitsError) Error() string
type WordNotExistError ¶
type WordNotExistError struct {
// contains filtered or unexported fields
}
func (WordNotExistError) Error ¶
func (e WordNotExistError) Error() string
Click to show internal directories.
Click to hide internal directories.