types

package
v0.9.1 Latest Latest
Warning

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

Go to latest
Published: Mar 25, 2024 License: Apache-2.0 Imports: 5 Imported by: 8

Documentation

Index

Constants

View Source
const AddressLength = 20

AddressLength is the length of an execution layer address.

View Source
const BlobLength = 131072
View Source
const VersionedHashLength = 32

VersionedHashLength is the length of a versioned hash.

Variables

This section is empty.

Functions

This section is empty.

Types

type Address

type Address [AddressLength]byte

Address is a 20-byte execution layer address.

func (Address) Format added in v0.8.0

func (a Address) Format(state fmt.State, v rune)

Format formats the address.

func (Address) MarshalJSON added in v0.8.9

func (a Address) MarshalJSON() ([]byte, error)

MarshalJSON implements json.Marshaler.

func (Address) String added in v0.8.0

func (a Address) String() string

String returns the EIP-55 string representation of the address.

func (*Address) UnmarshalJSON added in v0.8.9

func (a *Address) UnmarshalJSON(input []byte) error

UnmarshalJSON implements json.Unmarshaler.

type Blob added in v0.8.9

type Blob [BlobLength]byte

Blob is a blob of data.

func (Blob) Format added in v0.8.9

func (b Blob) Format(state fmt.State, v rune)

Format formats the blob.

func (Blob) MarshalJSON added in v0.8.9

func (b Blob) MarshalJSON() ([]byte, error)

MarshalJSON implements json.Marshaler.

func (Blob) String added in v0.8.9

func (b Blob) String() string

String returns the string representation of the blob.

func (*Blob) UnmarshalJSON added in v0.8.9

func (b *Blob) UnmarshalJSON(input []byte) error

UnmarshalJSON implements json.Unmarshaler.

type Hash

type Hash [32]byte

Hash is a 32-byte hash.

func (Hash) Format added in v0.8.0

func (h Hash) Format(state fmt.State, v rune)

Format formats the hash.

func (Hash) String added in v0.8.0

func (h Hash) String() string

String returns the string representation of the hash.

type Root

type Root [32]byte

Root is a 32-byte merkle root.

func (Root) Format added in v0.8.0

func (r Root) Format(state fmt.State, v rune)

Format formats the root.

func (Root) MarshalYAML added in v0.8.7

func (r Root) MarshalYAML() ([]byte, error)

MarshalYAML implements yaml.Marshaler.

func (Root) String added in v0.8.0

func (r Root) String() string

String returns the string representation of the root.

type VersionedHash added in v0.8.7

type VersionedHash [32]byte

VersionedHash is a 32-byte hash with the first byte being a version.

func (VersionedHash) Format added in v0.8.7

func (h VersionedHash) Format(state fmt.State, v rune)

Format formats the versioned hash.

func (VersionedHash) MarshalJSON added in v0.8.7

func (h VersionedHash) MarshalJSON() ([]byte, error)

MarshalJSON implements json.Marshaler.

func (VersionedHash) String added in v0.8.7

func (h VersionedHash) String() string

String returns the string representation of the versioned hash.

func (*VersionedHash) UnmarshalJSON added in v0.8.7

func (h *VersionedHash) UnmarshalJSON(input []byte) error

UnmarshalJSON implements json.Unmarshaler.

Jump to

Keyboard shortcuts

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