tests

package
v0.4.0 Latest Latest
Warning

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

Go to latest
Published: Jun 24, 2022 License: MIT Imports: 1 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Overview

Code generated by fastssz. DO NOT EDIT. Hash: 03468a23bbfc8f6e5808863eb6c910cd05e7472a6734fe0b7575f80d85ca9e92

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