prysm

package
v0.0.3 Latest Latest
Warning

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

Go to latest
Published: Oct 5, 2020 License: GPL-3.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

View Source
const (
	KeystoreDir    = "prysm"
	WalletDir      = "derived"
	WalletFileName = "seed.encrypted.json"
	ConfigFileName = "keymanageropts.json"
	DirMode        = 0700
	FileMode       = 0600

	DerivedPathStructure = "m / purpose / coin_type / account_index / withdrawal_key / validating_key"
	DerivedEIPNumber     = "EIP-2334"
)

Config

Variables

This section is empty.

Functions

This section is empty.

Types

type Keystore

type Keystore struct {
	// contains filtered or unexported fields
}

Prysm keystore

func NewKeystore

func NewKeystore(keystorePath string) *Keystore

Create new prysm keystore

func (*Keystore) StoreValidatorKey

func (ks *Keystore) StoreValidatorKey(key *eth2types.BLSPrivateKey, derivationPath string) error

Store a validator key

func (*Keystore) StoreWallet

func (ks *Keystore) StoreWallet(walletData []byte) error

Store a wallet

Jump to

Keyboard shortcuts

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