tests

package
v0.1.3 Latest Latest
Warning

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

Go to latest
Published: Feb 8, 2023 License: MIT Imports: 1 Imported by: 0

Documentation

Overview

Code generated by fastssz. DO NOT EDIT. Hash: df8ee20c084275038d70ba95d464efb07c8cdbd9bbc7ff4cf7d9f52ebad035db Version: 0.1.3-dev

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Chunk

type Chunk struct {
	FIO  uint8
	Code []byte `ssz-size:"32"` // Last chunk is right-padded with zeros
}

func (*Chunk) GetTree

func (c *Chunk) GetTree() (*ssz.Node, error)

GetTree ssz hashes the Chunk object

func (*Chunk) HashTreeRoot

func (c *Chunk) HashTreeRoot() ([32]byte, error)

HashTreeRoot ssz hashes the Chunk object

func (*Chunk) HashTreeRootWith

func (c *Chunk) HashTreeRootWith(hh ssz.HashWalker) (err error)

HashTreeRootWith ssz hashes the Chunk object with a hasher

func (*Chunk) MarshalSSZ

func (c *Chunk) MarshalSSZ() ([]byte, error)

MarshalSSZ ssz marshals the Chunk object

func (*Chunk) MarshalSSZTo

func (c *Chunk) MarshalSSZTo(buf []byte) (dst []byte, err error)

MarshalSSZTo ssz marshals the Chunk object to a target array

func (*Chunk) SizeSSZ

func (c *Chunk) SizeSSZ() (size int)

SizeSSZ returns the ssz encoded size in bytes for the Chunk object

func (*Chunk) UnmarshalSSZ

func (c *Chunk) UnmarshalSSZ(buf []byte) error

UnmarshalSSZ ssz unmarshals the Chunk object

type CodeTrieBig

type CodeTrieBig struct {
	Metadata *Metadata
	Chunks   []*Chunk `ssz-max:"1024"`
}

func (*CodeTrieBig) GetTree

func (c *CodeTrieBig) GetTree() (*ssz.Node, error)

GetTree ssz hashes the CodeTrieBig object

func (*CodeTrieBig) HashTreeRoot

func (c *CodeTrieBig) HashTreeRoot() ([32]byte, error)

HashTreeRoot ssz hashes the CodeTrieBig object

func (*CodeTrieBig) HashTreeRootWith

func (c *CodeTrieBig) HashTreeRootWith(hh ssz.HashWalker) (err error)

HashTreeRootWith ssz hashes the CodeTrieBig object with a hasher

func (*CodeTrieBig) MarshalSSZ

func (c *CodeTrieBig) MarshalSSZ() ([]byte, error)

MarshalSSZ ssz marshals the CodeTrieBig object

func (*CodeTrieBig) MarshalSSZTo

func (c *CodeTrieBig) MarshalSSZTo(buf []byte) (dst []byte, err error)

MarshalSSZTo ssz marshals the CodeTrieBig object to a target array

func (*CodeTrieBig) SizeSSZ

func (c *CodeTrieBig) SizeSSZ() (size int)

SizeSSZ returns the ssz encoded size in bytes for the CodeTrieBig object

func (*CodeTrieBig) UnmarshalSSZ

func (c *CodeTrieBig) UnmarshalSSZ(buf []byte) error

UnmarshalSSZ ssz unmarshals the CodeTrieBig object

type CodeTrieSmall

type CodeTrieSmall struct {
	Metadata *Metadata
	Chunks   []*Chunk `ssz-max:"4"`
}

func (*CodeTrieSmall) GetTree

func (c *CodeTrieSmall) GetTree() (*ssz.Node, error)

GetTree ssz hashes the CodeTrieSmall object

func (*CodeTrieSmall) HashTreeRoot

func (c *CodeTrieSmall) HashTreeRoot() ([32]byte, error)

HashTreeRoot ssz hashes the CodeTrieSmall object

func (*CodeTrieSmall) HashTreeRootWith

func (c *CodeTrieSmall) HashTreeRootWith(hh ssz.HashWalker) (err error)

HashTreeRootWith ssz hashes the CodeTrieSmall object with a hasher

func (*CodeTrieSmall) MarshalSSZ

func (c *CodeTrieSmall) MarshalSSZ() ([]byte, error)

MarshalSSZ ssz marshals the CodeTrieSmall object

func (*CodeTrieSmall) MarshalSSZTo

func (c *CodeTrieSmall) MarshalSSZTo(buf []byte) (dst []byte, err error)

MarshalSSZTo ssz marshals the CodeTrieSmall object to a target array

func (*CodeTrieSmall) SizeSSZ

func (c *CodeTrieSmall) SizeSSZ() (size int)

SizeSSZ returns the ssz encoded size in bytes for the CodeTrieSmall object

func (*CodeTrieSmall) UnmarshalSSZ

func (c *CodeTrieSmall) UnmarshalSSZ(buf []byte) error

UnmarshalSSZ ssz unmarshals the CodeTrieSmall object

type Metadata

type Metadata struct {
	Version    uint8
	CodeHash   []byte `ssz-size:"32"`
	CodeLength uint16
}

func (*Metadata) GetTree

func (m *Metadata) GetTree() (*ssz.Node, error)

GetTree ssz hashes the Metadata object

func (*Metadata) HashTreeRoot

func (m *Metadata) HashTreeRoot() ([32]byte, error)

HashTreeRoot ssz hashes the Metadata object

func (*Metadata) HashTreeRootWith

func (m *Metadata) HashTreeRootWith(hh ssz.HashWalker) (err error)

HashTreeRootWith ssz hashes the Metadata object with a hasher

func (*Metadata) MarshalSSZ

func (m *Metadata) MarshalSSZ() ([]byte, error)

MarshalSSZ ssz marshals the Metadata object

func (*Metadata) MarshalSSZTo

func (m *Metadata) MarshalSSZTo(buf []byte) (dst []byte, err error)

MarshalSSZTo ssz marshals the Metadata object to a target array

func (*Metadata) SizeSSZ

func (m *Metadata) SizeSSZ() (size int)

SizeSSZ returns the ssz encoded size in bytes for the Metadata object

func (*Metadata) UnmarshalSSZ

func (m *Metadata) UnmarshalSSZ(buf []byte) error

UnmarshalSSZ ssz unmarshals the Metadata object

Jump to

Keyboard shortcuts

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