ssz

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Mar 3, 2024 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Container

type Container struct {
	Root   []byte `ssz-size:"32"`
	Domain []byte `ssz-size:"32"`
}

func (*Container) GetTree

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

GetTree ssz hashes the Container object

func (*Container) HashTreeRoot

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

HashTreeRoot ssz hashes the Container object

func (*Container) HashTreeRootWith

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

HashTreeRootWith ssz hashes the Container object with a hasher

func (*Container) MarshalSSZ

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

MarshalSSZ ssz marshals the Container object

func (*Container) MarshalSSZTo

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

MarshalSSZTo ssz marshals the Container object to a target array

func (*Container) SizeSSZ

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

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

func (*Container) UnmarshalSSZ

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

UnmarshalSSZ ssz unmarshals the Container object

Jump to

Keyboard shortcuts

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