Documentation ¶
Index ¶
- type HDAccount
- func (account *HDAccount) BasePath() string
- func (account *HDAccount) GetContext() *core.WalletContext
- func (account *HDAccount) GetDepositData() (map[string]interface{}, error)
- func (account *HDAccount) ID() uuid.UUID
- func (account *HDAccount) MarshalJSON() ([]byte, error)
- func (account *HDAccount) Name() string
- func (account *HDAccount) SetContext(ctx *core.WalletContext)
- func (account *HDAccount) UnmarshalJSON(data []byte) error
- func (account *HDAccount) ValidationKeySign(data []byte) ([]byte, error)
- func (account *HDAccount) ValidatorPublicKey() []byte
- func (account *HDAccount) WithdrawalPublicKey() []byte
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) GetContext ¶ added in v1.4.1
func (account *HDAccount) GetContext() *core.WalletContext
GetContext is the context getter
func (*HDAccount) GetDepositData ¶
GetDepositData returns deposit data
func (*HDAccount) MarshalJSON ¶
MarshalJSON is the custom JSON marshaler
func (*HDAccount) SetContext ¶
func (account *HDAccount) SetContext(ctx *core.WalletContext)
SetContext is the context setter
func (*HDAccount) UnmarshalJSON ¶
UnmarshalJSON is the custom JSON unmarshaler
func (*HDAccount) ValidationKeySign ¶
ValidationKeySign signs data with the account.
func (*HDAccount) ValidatorPublicKey ¶
ValidatorPublicKey provides the public key for the account.
func (*HDAccount) WithdrawalPublicKey ¶
WithdrawalPublicKey provides the public key for the account.
Click to show internal directories.
Click to hide internal directories.