wallets

package
v1.4.0 Latest Latest
Warning

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

Go to latest
Published: Jan 22, 2024 License: GPL-3.0 Imports: 7 Imported by: 3

README

Blox Eth Key Manager - Wallets

blox.io

Hierarchical Deterministic(HD)

An EIP 2333,2334,2335 compliant HD wallet for BLS12-381

- Portfolio is a container of wallets
- Wallet is a container of accounts
- An account is a container for a BLS12-381 keypair
Non Deterministic(ND)

A simple portfolio holding a bag of private keys, non derivable.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type HDAccount

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

HDAccount represents HD account

func NewValidatorAccount

func NewValidatorAccount(
	name string,
	validationKey *core.HDKey,
	withdrawalPubKey []byte,
	basePath string,
	context *core.WalletContext,
) *HDAccount

NewValidatorAccount is the constructor of HDAccount

func (*HDAccount) BasePath

func (account *HDAccount) BasePath() string

BasePath provides the basePth of the account.

func (*HDAccount) GetDepositData

func (account *HDAccount) GetDepositData() (map[string]interface{}, error)

GetDepositData returns deposit data

func (*HDAccount) ID

func (account *HDAccount) ID() uuid.UUID

ID provides the ID for the account.

func (*HDAccount) MarshalJSON

func (account *HDAccount) MarshalJSON() ([]byte, error)

MarshalJSON is the custom JSON marshaler

func (*HDAccount) Name

func (account *HDAccount) Name() string

Name provides the name for the account.

func (*HDAccount) SetContext

func (account *HDAccount) SetContext(ctx *core.WalletContext)

SetContext is the context setter

func (*HDAccount) UnmarshalJSON

func (account *HDAccount) UnmarshalJSON(data []byte) error

UnmarshalJSON is the custom JSON unmarshaler

func (*HDAccount) ValidationKeySign

func (account *HDAccount) ValidationKeySign(data []byte) ([]byte, error)

ValidationKeySign signs data with the account.

func (*HDAccount) ValidatorPublicKey

func (account *HDAccount) ValidatorPublicKey() []byte

ValidatorPublicKey provides the public key for the account.

func (*HDAccount) WithdrawalPublicKey

func (account *HDAccount) WithdrawalPublicKey() []byte

WithdrawalPublicKey provides the public key for the account.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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