chains

package
v0.0.0-...-2897c99 Latest Latest
Warning

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

Go to latest
Published: Oct 19, 2022 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ECRecoverAddress

func ECRecoverAddress(hash, sig []byte) (common.Address, error)

func RecoverCommitterAddressesVals

func RecoverCommitterAddressesVals(headerHash []byte, seals [][]byte) (map[common.Address][]byte, error)

Types

type ParsedHeader

type ParsedHeader struct {
	Base *gethtypes.Header

	Vanity     [32]byte
	Validators []common.Address
	Vote       interface{}
	Round      [4]byte
	Seals      [][]byte
}

func ParseHeader

func ParseHeader(header *gethtypes.Header) (*ParsedHeader, error)

func (ParsedHeader) GetChainHeaderBytes

func (h ParsedHeader) GetChainHeaderBytes() ([]byte, error)

func (ParsedHeader) GetSealingHeaderBytes

func (h ParsedHeader) GetSealingHeaderBytes() ([]byte, error)

func (ParsedHeader) ValidateAndGetCommitSeals

func (h ParsedHeader) ValidateAndGetCommitSeals() ([][]byte, error)

Jump to

Keyboard shortcuts

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