vault

package
v0.0.3-alpha Latest Latest
Warning

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

Go to latest
Published: May 10, 2023 License: MIT Imports: 22 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// MaxAcctID is the number of accounts/key families to create on
	// initialization.
	MaxAcctID = 255

	Bip0043purpose = 1017
	NodeKeyAcct    = 6
)

Variables

View Source
var (
	ErrSeedPhraseWrongLength     = errors.New("seed phrase must be 24 words")
	ErrInvalidPassphrase         = errors.New("invalid passphrase")
	ErrSeedPhraseNotBIP39        = errors.New("seed phrase must use BIP39 word list")
	ErrBadCipherSeedVer          = errors.New("cipher seed version not recognized")
	ErrWrongLengthChecksum       = errors.New("wrong length checksum")
	ErrChecksumMismatch          = errors.New("checksum mismatch")
	ErrWrongInternalVersion      = errors.New("wrong internal version")
	ErrNodeAlreadyExists         = errors.New("node already exists")
	ErrNodePubkeyMismatch        = errors.New("node pubkey mismatch")
	ErrInvalidNetwork            = errors.New("invalid network")
	ErrInvalidPeerPubkey         = errors.New("invalid peer pubkey")
	ErrInvalidNodeID             = errors.New("invalid node id")
	ErrNodeNotFound              = errors.New("node not found")
	ErrInvalidSeedFromStorage    = errors.New("invalid seed from storage")
	ErrElementNotHardened        = errors.New("derivation path element not hardened")
	ErrNegativeElement           = errors.New("negative derivation path element")
	ErrWrongLengthDerivationPath = errors.New("derivation path not 5 elements")
	ErrElementOverflow           = errors.New("derivation path element > MaxUint32")
	ErrPubkeyMismatch            = errors.New("pubkey mismatch")
	ErrTooManyTweaks             = errors.New("both single and double tweak specified")
)

Functions

func Factory

func Factory(ctx context.Context, conf *logical.BackendConfig) (logical.Backend,
	error)

func GetNet

func GetNet(strNet string) (*chaincfg.Params, error)

Types

This section is empty.

Jump to

Keyboard shortcuts

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