Documentation ¶
Index ¶
- Variables
- func BlsPublicKeyToPublicKey(blsPubKey *bls.PublicKey) (ret phase0.BLSPubKey, err error)
- func BlsSignatureToSignature(blsSignature *bls.Signature) (ret phase0.BLSSignature, err error)
- func ComputeBlockHash(payload *api.VersionedExecutionPayload, parentBeaconRoot *phase0.Root) (phase0.Hash32, error)
- func DecodeJSON(r io.Reader, dst any) error
- func HexToAddress(s string) (ret bellatrix.ExecutionAddress, err error)
- func HexToHash(s string) (ret phase0.Hash32, err error)
- func HexToPubkey(s string) (ret phase0.BLSPubKey, err error)
- func HexToSignature(s string) (ret phase0.BLSSignature, err error)
- func PayloadToPayloadHeader(payload *api.VersionedExecutionPayload) (*api.VersionedExecutionPayloadHeader, error)
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ErrInvalidTransaction = errors.New("invalid transaction") ErrLength = errors.New("invalid length") ErrNilPayload = errors.New("nil payload") ErrUnsupportedVersion = errors.New("unsupported version") ErrUnknownVersion = errors.New("unknown version") ErrInvalidPubkey = errors.New("invalid pubkey") ErrInvalidSignature = errors.New("invalid signature") )
Functions ¶
func BlsPublicKeyToPublicKey ¶
func BlsSignatureToSignature ¶
func BlsSignatureToSignature(blsSignature *bls.Signature) (ret phase0.BLSSignature, err error)
func ComputeBlockHash ¶ added in v1.7.1
func ComputeBlockHash(payload *api.VersionedExecutionPayload, parentBeaconRoot *phase0.Root) (phase0.Hash32, error)
ComputeBlockHash computes the block hash for a given execution payload.
func DecodeJSON ¶
DecodeJSON decodes a JSON string into a struct while disallowing unknown fields
func HexToAddress ¶
func HexToAddress(s string) (ret bellatrix.ExecutionAddress, err error)
HexToAddress takes a hex string and returns an Address
func HexToPubkey ¶
HexToPubkey takes a hex string and returns a PublicKey
func HexToSignature ¶
func HexToSignature(s string) (ret phase0.BLSSignature, err error)
HexToSignature takes a hex string and returns a Signature
func PayloadToPayloadHeader ¶ added in v1.7.1
func PayloadToPayloadHeader(payload *api.VersionedExecutionPayload) (*api.VersionedExecutionPayloadHeader, error)
PayloadToPayloadHeader converts an ExecutionPayload to ExecutionPayloadHeader
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.