Documentation ¶
Index ¶
- func BLSID(id uint64) *bls.ID
- type DepositInfo
- type ScratchAccount
- func (a *ScratchAccount) ID() uuid.UUID
- func (a *ScratchAccount) IsUnlocked() bool
- func (a *ScratchAccount) Lock()
- func (a *ScratchAccount) Name() string
- func (a *ScratchAccount) Path() string
- func (a *ScratchAccount) PublicKey() types.PublicKey
- func (a *ScratchAccount) Sign(data []byte) (types.Signature, error)
- func (a *ScratchAccount) Unlock([]byte) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type DepositInfo ¶ added in v1.5.8
type DepositInfo struct { Name string Account string PublicKey []byte WithdrawalCredentials []byte Signature []byte DepositDataRoot []byte DepositMessageRoot []byte ForkVersion []byte Amount uint64 Version uint64 }
DepositInfo is a generic deposit structure.
func DepositInfoFromJSON ¶ added in v1.5.8
func DepositInfoFromJSON(input []byte) ([]*DepositInfo, error)
type ScratchAccount ¶
type ScratchAccount struct {
// contains filtered or unexported fields
}
ScratchAccount is an account that exists temporarily.
func NewScratchAccount ¶
func NewScratchAccount(privKey []byte, pubKey []byte) (*ScratchAccount, error)
NewScratchAccount creates a new local account.
func (*ScratchAccount) ID ¶
func (a *ScratchAccount) ID() uuid.UUID
func (*ScratchAccount) IsUnlocked ¶
func (a *ScratchAccount) IsUnlocked() bool
func (*ScratchAccount) Lock ¶
func (a *ScratchAccount) Lock()
func (*ScratchAccount) Name ¶
func (a *ScratchAccount) Name() string
func (*ScratchAccount) Path ¶
func (a *ScratchAccount) Path() string
func (*ScratchAccount) PublicKey ¶
func (a *ScratchAccount) PublicKey() types.PublicKey
func (*ScratchAccount) Unlock ¶
func (a *ScratchAccount) Unlock([]byte) error
Click to show internal directories.
Click to hide internal directories.