utils

package
v1.6.1-0.2023053011482... Latest Latest
Warning

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

Go to latest
Published: Nov 4, 2023 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrLength = errors.New("invalid length")

Functions

func BlsPublicKeyToPublicKey

func BlsPublicKeyToPublicKey(blsPubKey *bls.PublicKey) (ret phase0.BLSPubKey, err error)

func DecodeJSON

func DecodeJSON(r io.Reader, dst any) error

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

func HexToPubkey(s string) (ret phase0.BLSPubKey, err error)

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

Types

This section is empty.

Jump to

Keyboard shortcuts

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