genaro

package
v0.0.0-...-76f442b Latest Latest
Warning

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

Go to latest
Published: May 27, 2019 License: GPL-3.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateCommitteeRankByte

func CreateCommitteeRankByte(address []common.Address) []byte

func ResetHeaderSignature

func ResetHeaderSignature(header *types.Header)

func SetHeaderCommitteeRankList

func SetHeaderCommitteeRankList(header *types.Header, committeeRank []common.Address) error

func SetHeaderSignature

func SetHeaderSignature(header *types.Header, signature []byte)

Types

type API

type API struct {
	// contains filtered or unexported fields
}

API is a user facing RPC API to allow controlling the signer and voting mechanisms of the proof-of-authority scheme.

type ExtraData

type ExtraData struct {
	CommitteeRank []common.Address `json:"committeeRank"` // rank of committee
	//SentinelHeft  uint64           `json:"sentinelHeft"`  //sentinelHeft
	Signature []byte `json:"signature"` // the signature of block broadcaster
}

the field "extra" store the json of ExtraData TODO re-design the struct to speed up

func UnmarshalToExtra

func UnmarshalToExtra(header *types.Header) *ExtraData

Jump to

Keyboard shortcuts

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