signing

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Mar 26, 2024 License: MIT Imports: 4 Imported by: 0

Documentation

Overview

Code generated by fastssz. DO NOT EDIT. Hash: df71c3c8ba50391fbde221aa1571972be4dc214a4dd9bae00af6445efc38f540

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ComputeSSZDomain

func ComputeSSZDomain(dt DomainType, forkVersion ForkVersion, genesisValidatorsRoot Root) [32]byte

Types

type Domain

type Domain [32]byte
var (
	DomainBuilder Domain

	DomainTypeAppBuilder = DomainType{0x00, 0x00, 0x00, 0x01}
)

func ComputeDomain

func ComputeDomain(domainType DomainType, forkVersionHex, genesisValidatorsRootHex string) (domain Domain, err error)

type DomainType

type DomainType [4]byte

type ForkData

type ForkData struct {
	CurrentVersion        ForkVersion `ssz-size:"4"`
	GenesisValidatorsRoot Root        `ssz-size:"32"`
}

func (*ForkData) GetTree

func (f *ForkData) GetTree() (*ssz.Node, error)

GetTree ssz hashes the ForkData object

func (*ForkData) HashTreeRoot

func (f *ForkData) HashTreeRoot() ([32]byte, error)

HashTreeRoot ssz hashes the ForkData object

func (*ForkData) HashTreeRootWith

func (f *ForkData) HashTreeRootWith(hh ssz.HashWalker) (err error)

HashTreeRootWith ssz hashes the ForkData object with a hasher

func (*ForkData) MarshalSSZ

func (f *ForkData) MarshalSSZ() ([]byte, error)

MarshalSSZ ssz marshals the ForkData object

func (*ForkData) MarshalSSZTo

func (f *ForkData) MarshalSSZTo(buf []byte) (dst []byte, err error)

MarshalSSZTo ssz marshals the ForkData object to a target array

func (*ForkData) SizeSSZ

func (f *ForkData) SizeSSZ() (size int)

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

func (*ForkData) UnmarshalSSZ

func (f *ForkData) UnmarshalSSZ(buf []byte) error

UnmarshalSSZ ssz unmarshals the ForkData object

type ForkVersion

type ForkVersion [4]byte

func (*ForkVersion) FromSlice

func (f *ForkVersion) FromSlice(s []byte) error

type Root

type Root [32]byte

func (Root) String

func (h Root) String() string

Jump to

Keyboard shortcuts

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