testutil

package
v1.2.0-rc2 Latest Latest
Warning

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

Go to latest
Published: Oct 11, 2021 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func HexToBytes

func HexToBytes(input string) []byte

HexToBytes converts a hex string to a byte array. This should only be used for pre-defined test strings; it will panic if the input is invalid.

func HexToDomain

func HexToDomain(input string) phase0.Domain

HexToDomain converts a hex string to a spec domain. This should only be used for pre-defined test strings; it will panic if the input is invalid.

func HexToDomainType

func HexToDomainType(input string) phase0.DomainType

HexToDomainType converts a hex string to a spec domain type. This should only be used for pre-defined test strings; it will panic if the input is invalid.

func HexToPubKey

func HexToPubKey(input string) phase0.BLSPubKey

HexToPubKey converts a hex string to a spec public key. This should only be used for pre-defined test strings; it will panic if the input is invalid.

func HexToRoot

func HexToRoot(input string) phase0.Root

HexToRoot converts a hex string to a spec root. This should only be used for pre-defined test strings; it will panic if the input is invalid.

func HexToSignature

func HexToSignature(input string) phase0.BLSSignature

HexToSignature converts a hex string to a spec signature. This should only be used for pre-defined test strings; it will panic if the input is invalid.

func HexToVersion

func HexToVersion(input string) phase0.Version

HexToVersion converts a hex string to a spec version. This should only be used for pre-defined test strings; it will panic if the input is invalid.

Types

This section is empty.

Jump to

Keyboard shortcuts

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