testcases

package
v0.1.4 Latest Latest
Warning

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

Go to latest
Published: Jun 10, 2024 License: MIT Imports: 4 Imported by: 0

Documentation

Overview

Code generated by fastssz. DO NOT EDIT. Hash: 2c86e6e15cc7191506a38c159de8d5052c6dbffe7e0ed50df4c204e59c0a910c Version: 0.1.3

Code generated by fastssz. DO NOT EDIT. Hash: 0d43dc7ca248a185b5ee38c37a165eb11fd98e94c95259374bfb96068ec47fe5 Version: 0.1.3

Code generated by fastssz. DO NOT EDIT. Hash: 0aca0ed5db0471d3c88ee07357f9f54fcfd884b2ecf33ae591401ee982980434 Version: 0.1.3

Code generated by fastssz. DO NOT EDIT. Hash: 0b9226602a80c088edc665b1a1ad735449906d7d98eada191a05d0041d01e705 Version: 0.1.3

Code generated by fastssz. DO NOT EDIT. Hash: 0739a55d64908bfc8988ee4d8da353028ffd923005c38d4bc90b5e825ca82a87 Version: 0.1.3

Code generated by fastssz. DO NOT EDIT. Hash: 0560765b22251b17f1553a107cf8a7c24ebe7609a617dbfb6ca8bbbb115a6867 Version: 0.1.3

Code generated by fastssz. DO NOT EDIT. Hash: 09034edf01e156d8928085ee29917d06e06f3ef9ef3b2a67ecbc64105fdbb85a Version: 0.1.3

Code generated by fastssz. DO NOT EDIT. Hash: 0562fa01adaad68ef5426691aa772c8fd0246ed652bd5977abd3ffade315d864 Version: 0.1.3

Code generated by fastssz. DO NOT EDIT. Hash: 0b609fab43b8375454ad43e5615f9cced68d8df4bfe72745b8f11f0abccdb2d1 Version: 0.1.3

Code generated by fastssz. DO NOT EDIT. Hash: 1bb7e03ae032f29c7e41ebec8539d7bcf5a2f5a50de987af189c469a1dba4af2 Version: 0.1.3

Code generated by fastssz. DO NOT EDIT. Hash: 0e51ff79e288ba3545adcb82e125a67a0e0665b700da0018e79613bbee77288d Version: 0.1.3

Code generated by fastssz. DO NOT EDIT. Hash: 8eca3bad21c4074906cdea17e59f768a090f5ae4ed88542e0b7a357033d7b6 Version: 0.1.3

Code generated by fastssz. DO NOT EDIT. Hash: 2a720b4b6cca23f357ed64b28adf44961631a3dbb010475e12c4552766624f52 Version: 0.1.3

Code generated by fastssz. DO NOT EDIT. Hash: 2d24aec392bfc01bdab267256c673c5a8fa3c2ad9fa61c5fd773ca31fda4ceef Version: 0.1.3

Code generated by fastssz. DO NOT EDIT. Hash: 04ac916e8f15c6e500617c8195a73e18b9b9f9a76652d4bec1f96b4bb045bef4

Code generated by fastssz. DO NOT EDIT. Hash: 17a55006874321c9b5095191cfc749481588a73c12eff5911a6fa7bbd421d0b6 Version: 0.1.3

Index

Constants

View Source
const Case6Size = 32

Variables

This section is empty.

Functions

This section is empty.

Types

type Bytes

type Bytes []byte

type BytesWrapper

type BytesWrapper struct {
	Bytes []byte `ssz-size:"48"`
}

func (*BytesWrapper) GetTree

func (b *BytesWrapper) GetTree() (*ssz.Node, error)

GetTree ssz hashes the BytesWrapper object

func (*BytesWrapper) HashTreeRoot

func (b *BytesWrapper) HashTreeRoot() ([32]byte, error)

HashTreeRoot ssz hashes the BytesWrapper object

func (*BytesWrapper) HashTreeRootWith

func (b *BytesWrapper) HashTreeRootWith(hh ssz.HashWalker) (err error)

HashTreeRootWith ssz hashes the BytesWrapper object with a hasher

func (*BytesWrapper) MarshalSSZ

func (b *BytesWrapper) MarshalSSZ() ([]byte, error)

MarshalSSZ ssz marshals the BytesWrapper object

func (*BytesWrapper) MarshalSSZTo

func (b *BytesWrapper) MarshalSSZTo(buf []byte) (dst []byte, err error)

MarshalSSZTo ssz marshals the BytesWrapper object to a target array

func (*BytesWrapper) SizeSSZ

func (b *BytesWrapper) SizeSSZ() (size int)

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

func (*BytesWrapper) UnmarshalSSZ

func (b *BytesWrapper) UnmarshalSSZ(buf []byte) error

UnmarshalSSZ ssz unmarshals the BytesWrapper object

type Case1A

type Case1A struct {
	Foo Bytes `ssz-max:"2048"`
}

func (*Case1A) GetTree

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

GetTree ssz hashes the Case1A object

func (*Case1A) HashTreeRoot

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

HashTreeRoot ssz hashes the Case1A object

func (*Case1A) HashTreeRootWith

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

HashTreeRootWith ssz hashes the Case1A object with a hasher

func (*Case1A) MarshalSSZ

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

MarshalSSZ ssz marshals the Case1A object

func (*Case1A) MarshalSSZTo

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

MarshalSSZTo ssz marshals the Case1A object to a target array

func (*Case1A) SizeSSZ

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

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

func (*Case1A) UnmarshalSSZ

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

UnmarshalSSZ ssz unmarshals the Case1A object

type Case1B

type Case1B struct {
	Bar Bytes `ssz-max:"32"`
}

func (*Case1B) GetTree

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

GetTree ssz hashes the Case1B object

func (*Case1B) HashTreeRoot

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

HashTreeRoot ssz hashes the Case1B object

func (*Case1B) HashTreeRootWith

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

HashTreeRootWith ssz hashes the Case1B object with a hasher

func (*Case1B) MarshalSSZ

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

MarshalSSZ ssz marshals the Case1B object

func (*Case1B) MarshalSSZTo

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

MarshalSSZTo ssz marshals the Case1B object to a target array

func (*Case1B) SizeSSZ

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

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

func (*Case1B) UnmarshalSSZ

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

UnmarshalSSZ ssz unmarshals the Case1B object

type Case2A

type Case2A struct {
	A uint64
}

func (*Case2A) GetTree

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

GetTree ssz hashes the Case2A object

func (*Case2A) HashTreeRoot

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

HashTreeRoot ssz hashes the Case2A object

func (*Case2A) HashTreeRootWith

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

HashTreeRootWith ssz hashes the Case2A object with a hasher

func (*Case2A) MarshalSSZ

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

MarshalSSZ ssz marshals the Case2A object

func (*Case2A) MarshalSSZTo

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

MarshalSSZTo ssz marshals the Case2A object to a target array

func (*Case2A) SizeSSZ

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

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

func (*Case2A) UnmarshalSSZ

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

UnmarshalSSZ ssz unmarshals the Case2A object

type Case2B

type Case2B struct {
	Case2A

	B uint64
}

func (*Case2B) GetTree

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

GetTree ssz hashes the Case2B object

func (*Case2B) HashTreeRoot

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

HashTreeRoot ssz hashes the Case2B object

func (*Case2B) HashTreeRootWith

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

HashTreeRootWith ssz hashes the Case2B object with a hasher

func (*Case2B) MarshalSSZ

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

MarshalSSZ ssz marshals the Case2B object

func (*Case2B) MarshalSSZTo

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

MarshalSSZTo ssz marshals the Case2B object to a target array

func (*Case2B) SizeSSZ

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

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

func (*Case2B) UnmarshalSSZ

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

UnmarshalSSZ ssz unmarshals the Case2B object

type Case3A

type Case3A struct {
	A Case3B
	B *Case3B
	C other.Case3B
	D *other.Case3B
}

func (*Case3A) GetTree

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

GetTree ssz hashes the Case3A object

func (*Case3A) HashTreeRoot

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

HashTreeRoot ssz hashes the Case3A object

func (*Case3A) HashTreeRootWith

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

HashTreeRootWith ssz hashes the Case3A object with a hasher

func (*Case3A) MarshalSSZ

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

MarshalSSZ ssz marshals the Case3A object

func (*Case3A) MarshalSSZTo

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

MarshalSSZTo ssz marshals the Case3A object to a target array

func (*Case3A) SizeSSZ

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

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

func (*Case3A) UnmarshalSSZ

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

UnmarshalSSZ ssz unmarshals the Case3A object

type Case3B

type Case3B struct {
}

func (*Case3B) GetTree

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

GetTree ssz hashes the Case3B object

func (*Case3B) HashTreeRoot

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

HashTreeRoot ssz hashes the Case3B object

func (*Case3B) HashTreeRootWith

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

HashTreeRootWith ssz hashes the Case3B object with a hasher

func (*Case3B) MarshalSSZ

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

MarshalSSZ ssz marshals the Case3B object

func (*Case3B) MarshalSSZTo

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

MarshalSSZTo ssz marshals the Case3B object to a target array

func (*Case3B) SizeSSZ

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

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

func (*Case3B) UnmarshalSSZ

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

UnmarshalSSZ ssz unmarshals the Case3B object

type Case4

type Case4 struct {
	A other.Case4Interface  `ssz-size:"96"`
	B *other.Case4Interface `ssz-size:"96"`
	C alias.Case4Slot
	D other.Case4Bytes          `ssz-size:"96"`
	E other.Case4FixedSignature `ssz-size:"96"`
}

func (*Case4) GetTree

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

GetTree ssz hashes the Case4 object

func (*Case4) HashTreeRoot

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

HashTreeRoot ssz hashes the Case4 object

func (*Case4) HashTreeRootWith

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

HashTreeRootWith ssz hashes the Case4 object with a hasher

func (*Case4) MarshalSSZ

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

MarshalSSZ ssz marshals the Case4 object

func (*Case4) MarshalSSZTo

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

MarshalSSZTo ssz marshals the Case4 object to a target array

func (*Case4) SizeSSZ

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

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

func (*Case4) UnmarshalSSZ

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

UnmarshalSSZ ssz unmarshals the Case4 object

type Case5A

type Case5A struct {
	A [][]byte     `ssz-size:"2,2"`
	B []Case5Bytes `ssz-size:"2,2"`
	C Case5Roots   `ssz-size:"2,2"`
}

func (*Case5A) GetTree

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

GetTree ssz hashes the Case5A object

func (*Case5A) HashTreeRoot

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

HashTreeRoot ssz hashes the Case5A object

func (*Case5A) HashTreeRootWith

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

HashTreeRootWith ssz hashes the Case5A object with a hasher

func (*Case5A) MarshalSSZ

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

MarshalSSZ ssz marshals the Case5A object

func (*Case5A) MarshalSSZTo

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

MarshalSSZTo ssz marshals the Case5A object to a target array

func (*Case5A) SizeSSZ

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

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

func (*Case5A) UnmarshalSSZ

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

UnmarshalSSZ ssz unmarshals the Case5A object

type Case5Bytes

type Case5Bytes []byte

type Case5Roots

type Case5Roots [][]byte

type Case6

type Case6 struct {
	A [Case6Size]byte `ssz-size:"32"`
}

func (*Case6) GetTree

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

GetTree ssz hashes the Case6 object

func (*Case6) HashTreeRoot

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

HashTreeRoot ssz hashes the Case6 object

func (*Case6) HashTreeRootWith

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

HashTreeRootWith ssz hashes the Case6 object with a hasher

func (*Case6) MarshalSSZ

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

MarshalSSZ ssz marshals the Case6 object

func (*Case6) MarshalSSZTo

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

MarshalSSZTo ssz marshals the Case6 object to a target array

func (*Case6) SizeSSZ

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

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

func (*Case6) UnmarshalSSZ

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

UnmarshalSSZ ssz unmarshals the Case6 object

type Case7

type Case7 struct {
	BlobKzgs [][]byte `ssz-size:"?,48" ssz-max:"16"`
}

func (*Case7) GetTree

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

GetTree ssz hashes the Case7 object

func (*Case7) HashTreeRoot

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

HashTreeRoot ssz hashes the Case7 object

func (*Case7) HashTreeRootWith

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

HashTreeRootWith ssz hashes the Case7 object with a hasher

func (*Case7) MarshalSSZ

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

MarshalSSZ ssz marshals the Case7 object

func (*Case7) MarshalSSZTo

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

MarshalSSZTo ssz marshals the Case7 object to a target array

func (*Case7) SizeSSZ

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

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

func (*Case7) UnmarshalSSZ

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

UnmarshalSSZ ssz unmarshals the Case7 object

type Data

type Data []byte

type Data152

type Data152 [48]byte

Data152 is a byte array with 48 elements

type Issue136

type Issue136 struct {
	C other.Case3B
}

func (*Issue136) GetTree

func (i *Issue136) GetTree() (*ssz.Node, error)

GetTree ssz hashes the Issue136 object

func (*Issue136) HashTreeRoot

func (i *Issue136) HashTreeRoot() ([32]byte, error)

HashTreeRoot ssz hashes the Issue136 object

func (*Issue136) HashTreeRootWith

func (i *Issue136) HashTreeRootWith(hh ssz.HashWalker) (err error)

HashTreeRootWith ssz hashes the Issue136 object with a hasher

func (*Issue136) MarshalSSZ

func (i *Issue136) MarshalSSZ() ([]byte, error)

MarshalSSZ ssz marshals the Issue136 object

func (*Issue136) MarshalSSZTo

func (i *Issue136) MarshalSSZTo(buf []byte) (dst []byte, err error)

MarshalSSZTo ssz marshals the Issue136 object to a target array

func (*Issue136) SizeSSZ

func (i *Issue136) SizeSSZ() (size int)

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

func (*Issue136) UnmarshalSSZ

func (i *Issue136) UnmarshalSSZ(buf []byte) error

UnmarshalSSZ ssz unmarshals the Issue136 object

type Issue153

type Issue153 struct {
	Value1 [32]byte `ssz-size:"32"`
	Value2 [48]byte
	Value  Data152
}

Issue153 is a struct with a Data152 field

func (*Issue153) GetTree

func (i *Issue153) GetTree() (*ssz.Node, error)

GetTree ssz hashes the Issue153 object

func (*Issue153) HashTreeRoot

func (i *Issue153) HashTreeRoot() ([32]byte, error)

HashTreeRoot ssz hashes the Issue153 object

func (*Issue153) HashTreeRootWith

func (i *Issue153) HashTreeRootWith(hh ssz.HashWalker) (err error)

HashTreeRootWith ssz hashes the Issue153 object with a hasher

func (*Issue153) MarshalSSZ

func (i *Issue153) MarshalSSZ() ([]byte, error)

MarshalSSZ ssz marshals the Issue153 object

func (*Issue153) MarshalSSZTo

func (i *Issue153) MarshalSSZTo(buf []byte) (dst []byte, err error)

MarshalSSZTo ssz marshals the Issue153 object to a target array

func (*Issue153) SizeSSZ

func (i *Issue153) SizeSSZ() (size int)

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

func (*Issue153) UnmarshalSSZ

func (i *Issue153) UnmarshalSSZ(buf []byte) error

UnmarshalSSZ ssz unmarshals the Issue153 object

type Issue156

type Issue156 struct {
	A  [32]byte `ssz-size:"32"`
	A2 [32]byte
	A3 [32]byte `json:"a3"`
	A4 []byte   `json:"a4" ssz-size:"32"`
}

func (*Issue156) GetTree

func (i *Issue156) GetTree() (*ssz.Node, error)

GetTree ssz hashes the Issue156 object

func (*Issue156) HashTreeRoot

func (i *Issue156) HashTreeRoot() ([32]byte, error)

HashTreeRoot ssz hashes the Issue156 object

func (*Issue156) HashTreeRootWith

func (i *Issue156) HashTreeRootWith(hh ssz.HashWalker) (err error)

HashTreeRootWith ssz hashes the Issue156 object with a hasher

func (*Issue156) MarshalSSZ

func (i *Issue156) MarshalSSZ() ([]byte, error)

MarshalSSZ ssz marshals the Issue156 object

func (*Issue156) MarshalSSZTo

func (i *Issue156) MarshalSSZTo(buf []byte) (dst []byte, err error)

MarshalSSZTo ssz marshals the Issue156 object to a target array

func (*Issue156) SizeSSZ

func (i *Issue156) SizeSSZ() (size int)

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

func (*Issue156) UnmarshalSSZ

func (i *Issue156) UnmarshalSSZ(buf []byte) error

UnmarshalSSZ ssz unmarshals the Issue156 object

type ListC

type ListC struct {
	Elems []BytesWrapper `ssz-max:"32"`
}

func (*ListC) GetTree

func (l *ListC) GetTree() (*ssz.Node, error)

GetTree ssz hashes the ListC object

func (*ListC) HashTreeRoot

func (l *ListC) HashTreeRoot() ([32]byte, error)

HashTreeRoot ssz hashes the ListC object

func (*ListC) HashTreeRootWith

func (l *ListC) HashTreeRootWith(hh ssz.HashWalker) (err error)

HashTreeRootWith ssz hashes the ListC object with a hasher

func (*ListC) MarshalSSZ

func (l *ListC) MarshalSSZ() ([]byte, error)

MarshalSSZ ssz marshals the ListC object

func (*ListC) MarshalSSZTo

func (l *ListC) MarshalSSZTo(buf []byte) (dst []byte, err error)

MarshalSSZTo ssz marshals the ListC object to a target array

func (*ListC) SizeSSZ

func (l *ListC) SizeSSZ() (size int)

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

func (*ListC) UnmarshalSSZ

func (l *ListC) UnmarshalSSZ(buf []byte) error

UnmarshalSSZ ssz unmarshals the ListC object

type ListP

type ListP struct {
	Elems []*BytesWrapper `ssz-max:"32"`
}

func (*ListP) GetTree

func (l *ListP) GetTree() (*ssz.Node, error)

GetTree ssz hashes the ListP object

func (*ListP) HashTreeRoot

func (l *ListP) HashTreeRoot() ([32]byte, error)

HashTreeRoot ssz hashes the ListP object

func (*ListP) HashTreeRootWith

func (l *ListP) HashTreeRootWith(hh ssz.HashWalker) (err error)

HashTreeRootWith ssz hashes the ListP object with a hasher

func (*ListP) MarshalSSZ

func (l *ListP) MarshalSSZ() ([]byte, error)

MarshalSSZ ssz marshals the ListP object

func (*ListP) MarshalSSZTo

func (l *ListP) MarshalSSZTo(buf []byte) (dst []byte, err error)

MarshalSSZTo ssz marshals the ListP object to a target array

func (*ListP) SizeSSZ

func (l *ListP) SizeSSZ() (size int)

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

func (*ListP) UnmarshalSSZ

func (l *ListP) UnmarshalSSZ(buf []byte) error

UnmarshalSSZ ssz unmarshals the ListP object

type Obj2

type Obj2 struct {
	T1 []Data `ssz-max:"1024,256" ssz-size:"?,?"`
}

func (*Obj2) GetTree

func (o *Obj2) GetTree() (*ssz.Node, error)

GetTree ssz hashes the Obj2 object

func (*Obj2) HashTreeRoot

func (o *Obj2) HashTreeRoot() ([32]byte, error)

HashTreeRoot ssz hashes the Obj2 object

func (*Obj2) HashTreeRootWith

func (o *Obj2) HashTreeRootWith(hh ssz.HashWalker) (err error)

HashTreeRootWith ssz hashes the Obj2 object with a hasher

func (*Obj2) MarshalSSZ

func (o *Obj2) MarshalSSZ() ([]byte, error)

MarshalSSZ ssz marshals the Obj2 object

func (*Obj2) MarshalSSZTo

func (o *Obj2) MarshalSSZTo(buf []byte) (dst []byte, err error)

MarshalSSZTo ssz marshals the Obj2 object to a target array

func (*Obj2) SizeSSZ

func (o *Obj2) SizeSSZ() (size int)

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

func (*Obj2) UnmarshalSSZ

func (o *Obj2) UnmarshalSSZ(buf []byte) error

UnmarshalSSZ ssz unmarshals the Obj2 object

type PR1512

type PR1512 struct {
	D []Data152 `ssz-max:"32"`
}

PR1512 is a struct with a Data152 field

func (*PR1512) GetTree

func (p *PR1512) GetTree() (*ssz.Node, error)

GetTree ssz hashes the PR1512 object

func (*PR1512) HashTreeRoot

func (p *PR1512) HashTreeRoot() ([32]byte, error)

HashTreeRoot ssz hashes the PR1512 object

func (*PR1512) HashTreeRootWith

func (p *PR1512) HashTreeRootWith(hh ssz.HashWalker) (err error)

HashTreeRootWith ssz hashes the PR1512 object with a hasher

func (*PR1512) MarshalSSZ

func (p *PR1512) MarshalSSZ() ([]byte, error)

MarshalSSZ ssz marshals the PR1512 object

func (*PR1512) MarshalSSZTo

func (p *PR1512) MarshalSSZTo(buf []byte) (dst []byte, err error)

MarshalSSZTo ssz marshals the PR1512 object to a target array

func (*PR1512) SizeSSZ

func (p *PR1512) SizeSSZ() (size int)

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

func (*PR1512) UnmarshalSSZ

func (p *PR1512) UnmarshalSSZ(buf []byte) error

UnmarshalSSZ ssz unmarshals the PR1512 object

type TimeRawType

type TimeRawType struct {
	Timestamp uint64
	Int       uint64
}

func (*TimeRawType) GetTree

func (t *TimeRawType) GetTree() (*ssz.Node, error)

GetTree ssz hashes the TimeRawType object

func (*TimeRawType) HashTreeRoot

func (t *TimeRawType) HashTreeRoot() ([32]byte, error)

HashTreeRoot ssz hashes the TimeRawType object

func (*TimeRawType) HashTreeRootWith

func (t *TimeRawType) HashTreeRootWith(hh ssz.HashWalker) (err error)

HashTreeRootWith ssz hashes the TimeRawType object with a hasher

func (*TimeRawType) MarshalSSZ

func (t *TimeRawType) MarshalSSZ() ([]byte, error)

MarshalSSZ ssz marshals the TimeRawType object

func (*TimeRawType) MarshalSSZTo

func (t *TimeRawType) MarshalSSZTo(buf []byte) (dst []byte, err error)

MarshalSSZTo ssz marshals the TimeRawType object to a target array

func (*TimeRawType) SizeSSZ

func (t *TimeRawType) SizeSSZ() (size int)

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

func (*TimeRawType) UnmarshalSSZ

func (t *TimeRawType) UnmarshalSSZ(buf []byte) error

UnmarshalSSZ ssz unmarshals the TimeRawType object

type TimeType

type TimeType struct {
	Timestamp time.Time
	Int       uint64
}

func (*TimeType) GetTree

func (t *TimeType) GetTree() (*ssz.Node, error)

GetTree ssz hashes the TimeType object

func (*TimeType) HashTreeRoot

func (t *TimeType) HashTreeRoot() ([32]byte, error)

HashTreeRoot ssz hashes the TimeType object

func (*TimeType) HashTreeRootWith

func (t *TimeType) HashTreeRootWith(hh ssz.HashWalker) (err error)

HashTreeRootWith ssz hashes the TimeType object with a hasher

func (*TimeType) MarshalSSZ

func (t *TimeType) MarshalSSZ() ([]byte, error)

MarshalSSZ ssz marshals the TimeType object

func (*TimeType) MarshalSSZTo

func (t *TimeType) MarshalSSZTo(buf []byte) (dst []byte, err error)

MarshalSSZTo ssz marshals the TimeType object to a target array

func (*TimeType) SizeSSZ

func (t *TimeType) SizeSSZ() (size int)

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

func (*TimeType) UnmarshalSSZ

func (t *TimeType) UnmarshalSSZ(buf []byte) error

UnmarshalSSZ ssz unmarshals the TimeType object

type Uint16

type Uint16 uint16

type Uint32

type Uint32 uint32

type Uint64

type Uint64 uint64

type Uint8

type Uint8 uint8

type Uints

type Uints struct {
	Uint8  Uint8
	Uint16 Uint16
	Uint32 Uint32
	Uint64 Uint64
}

func (*Uints) GetTree

func (u *Uints) GetTree() (*ssz.Node, error)

GetTree ssz hashes the Uints object

func (*Uints) HashTreeRoot

func (u *Uints) HashTreeRoot() ([32]byte, error)

HashTreeRoot ssz hashes the Uints object

func (*Uints) HashTreeRootWith

func (u *Uints) HashTreeRootWith(hh ssz.HashWalker) (err error)

HashTreeRootWith ssz hashes the Uints object with a hasher

func (*Uints) MarshalSSZ

func (u *Uints) MarshalSSZ() ([]byte, error)

MarshalSSZ ssz marshals the Uints object

func (*Uints) MarshalSSZTo

func (u *Uints) MarshalSSZTo(buf []byte) (dst []byte, err error)

MarshalSSZTo ssz marshals the Uints object to a target array

func (*Uints) SizeSSZ

func (u *Uints) SizeSSZ() (size int)

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

func (*Uints) UnmarshalSSZ

func (u *Uints) UnmarshalSSZ(buf []byte) error

UnmarshalSSZ ssz unmarshals the Uints object

type Vec

type Vec struct {
	Values []uint64 `ssz-size:"6"`
}

func (*Vec) GetTree

func (v *Vec) GetTree() (*ssz.Node, error)

GetTree ssz hashes the Vec object

func (*Vec) HashTreeRoot

func (v *Vec) HashTreeRoot() ([32]byte, error)

HashTreeRoot ssz hashes the Vec object

func (*Vec) HashTreeRootWith

func (v *Vec) HashTreeRootWith(hh ssz.HashWalker) (err error)

HashTreeRootWith ssz hashes the Vec object with a hasher

func (*Vec) MarshalSSZ

func (v *Vec) MarshalSSZ() ([]byte, error)

MarshalSSZ ssz marshals the Vec object

func (*Vec) MarshalSSZTo

func (v *Vec) MarshalSSZTo(buf []byte) (dst []byte, err error)

MarshalSSZTo ssz marshals the Vec object to a target array

func (*Vec) SizeSSZ

func (v *Vec) SizeSSZ() (size int)

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

func (*Vec) UnmarshalSSZ

func (v *Vec) UnmarshalSSZ(buf []byte) error

UnmarshalSSZ ssz unmarshals the Vec object

type Vec2

type Vec2 struct {
	Values2 []uint32 `ssz-max:"100"`
}

func (*Vec2) GetTree

func (v *Vec2) GetTree() (*ssz.Node, error)

GetTree ssz hashes the Vec2 object

func (*Vec2) HashTreeRoot

func (v *Vec2) HashTreeRoot() ([32]byte, error)

HashTreeRoot ssz hashes the Vec2 object

func (*Vec2) HashTreeRootWith

func (v *Vec2) HashTreeRootWith(hh ssz.HashWalker) (err error)

HashTreeRootWith ssz hashes the Vec2 object with a hasher

func (*Vec2) MarshalSSZ

func (v *Vec2) MarshalSSZ() ([]byte, error)

MarshalSSZ ssz marshals the Vec2 object

func (*Vec2) MarshalSSZTo

func (v *Vec2) MarshalSSZTo(buf []byte) (dst []byte, err error)

MarshalSSZTo ssz marshals the Vec2 object to a target array

func (*Vec2) SizeSSZ

func (v *Vec2) SizeSSZ() (size int)

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

func (*Vec2) UnmarshalSSZ

func (v *Vec2) UnmarshalSSZ(buf []byte) error

UnmarshalSSZ ssz unmarshals the Vec2 object

Directories

Path Synopsis
Code generated by fastssz.
Code generated by fastssz.

Jump to

Keyboard shortcuts

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