bip3x

package
v1.5.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 18, 2025 License: BSD-2-Clause Imports: 12 Imported by: 0

Documentation

Index

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 CreateEntropyRandomly(entropySize int) ([]byte, error)

func Ed25519DeriveSk

func Ed25519DeriveSk(seed []byte, path []uint32) ([]byte, error)

func EntropyToMnemonic

func EntropyToMnemonic(entropy []byte) (string, error)

func MnemonicToSeed

func MnemonicToSeed(mnemonic string, password string) ([]byte, error)

func Secp256k1DeriveSk

func Secp256k1DeriveSk(seed []byte, path []uint32) ([]byte, error)

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

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL