ssz

package
v1.8.1 Latest Latest
Warning

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

Go to latest
Published: Feb 29, 2024 License: MIT Imports: 3 Imported by: 5

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrLength = errors.New("invalid length")

	DomainBuilder = ComputeDomain(DomainTypeAppBuilder, phase0.Version{}, phase0.Root{})

	DomainTypeBeaconProposer = phase0.DomainType{0x00, 0x00, 0x00, 0x00}
	DomainTypeAppBuilder     = phase0.DomainType{0x00, 0x00, 0x00, 0x01}
)

Functions

func ComputeDomain

func ComputeDomain(dt phase0.DomainType, forkVersion phase0.Version, genesisValidatorsRoot phase0.Root) [32]byte

func ComputeSigningRoot

func ComputeSigningRoot(obj ObjWithHashTreeRoot, d phase0.Domain) ([32]byte, error)

func VerifySignature

func VerifySignature(obj ObjWithHashTreeRoot, d phase0.Domain, pkBytes, sigBytes []byte) (bool, error)

func VerifySignatureRoot added in v1.7.1

func VerifySignatureRoot(root phase0.Root, d phase0.Domain, pkBytes, sigBytes []byte) (bool, error)

Types

type ObjWithHashTreeRoot

type ObjWithHashTreeRoot interface {
	HashTreeRoot() ([32]byte, error)
}

Jump to

Keyboard shortcuts

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