Documentation ¶
Index ¶
Constants ¶
const AddressLength = 20
AddressLength is the length of an execution layer address.
const BlobLength = 131072
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) MarshalJSON ¶ added in v0.8.9
MarshalJSON implements json.Marshaler.
func (Address) String ¶ added in v0.8.0
String returns the EIP-55 string representation of the address.
func (*Address) UnmarshalJSON ¶ added in v0.8.9
UnmarshalJSON implements json.Unmarshaler.
type Blob ¶ added in v0.8.9
type Blob [BlobLength]byte
Blob is a blob of data.
func (Blob) MarshalJSON ¶ added in v0.8.9
MarshalJSON implements json.Marshaler.
func (*Blob) UnmarshalJSON ¶ added in v0.8.9
UnmarshalJSON implements json.Unmarshaler.
type Hash ¶
type Hash [32]byte
Hash is a 32-byte hash.
type Root ¶
type Root [32]byte
Root is a 32-byte merkle root.
func (Root) MarshalYAML ¶ added in v0.8.7
MarshalYAML implements yaml.Marshaler.
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.