Documentation ¶
Index ¶
- Variables
- func Commands() *cobra.Command
- func ConvertAmount(amount string) (primitives.Gwei, error)
- func ConvertGenesisValidatorRoot(root string) (primitives.Root, error)
- func ConvertPubkey(pubkey string) (primitives.BLSPubkey, error)
- func ConvertSignature(signature string) (primitives.BLSSignature, error)
- func ConvertVersion(version string) (primitives.Version, error)
- func ConvertWithdrawalCredentials(credentials string) (types.WithdrawalCredentials, error)
- func NewValidateDeposit() *cobra.Command
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // ErrInvalidPubKeyLength is returned when the public key is invalid. ErrInvalidPubKeyLength = errors.New( "invalid public key length", ) // ErrInvalidWithdrawalCredentialsLength is returned when the withdrawal // credentials are invalid. ErrInvalidWithdrawalCredentialsLength = errors.New( "invalid withdrawal credentials length", ) // ErrInvalidAmount is returned when the deposit amount is invalid. ErrInvalidAmount = errors.New( "invalid amount", ) // ErrInvalidSignatureLength is returned when the signature is invalid. ErrInvalidSignatureLength = errors.New( "invalid signature length", ) // ErrInvalidVersionLength is returned when the deposit version is invalid. ErrInvalidVersionLength = errors.New( "invalid version", ) // ErrInvalidRootLength is returned when the deposit root is invalid. ErrInvalidRootLength = errors.New( "invalid root length", ) )
Functions ¶
func ConvertAmount ¶
func ConvertAmount(amount string) (primitives.Gwei, error)
ConvertAmount converts a string to a deposit amount.
func ConvertGenesisValidatorRoot ¶
func ConvertGenesisValidatorRoot(root string) (primitives.Root, error)
func ConvertPubkey ¶
func ConvertPubkey(pubkey string) (primitives.BLSPubkey, error)
ConvertPubkey converts a string to a public key.
func ConvertSignature ¶
func ConvertSignature(signature string) (primitives.BLSSignature, error)
ConvertSignature converts a string to a signature.
func ConvertVersion ¶
func ConvertVersion(version string) (primitives.Version, error)
func ConvertWithdrawalCredentials ¶
func ConvertWithdrawalCredentials(credentials string) ( types.WithdrawalCredentials, error, )
ConvertWithdrawalCredentials converts a string to a withdrawal credentials.
func NewValidateDeposit ¶
NewValidateDeposit creates a new command for validating a deposit message.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.