verifier

package
v0.0.6 Latest Latest
Warning

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

Go to latest
Published: May 13, 2024 License: GPL-3.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Verifier

type Verifier struct {
	NumOfDsGuard int
}

func (*Verifier) AggregatedPubKeyFromDsComm

func (v *Verifier) AggregatedPubKeyFromDsComm(dsComm *list.List, dsBlock *core.DsBlock) ([]byte, error)

func (*Verifier) AggregatedPubKeyFromTxComm

func (v *Verifier) AggregatedPubKeyFromTxComm(dsComm *list.List, txBlock *core.TxBlock) ([]byte, error)

func (*Verifier) UpdateDSCommitteeComposition

func (v *Verifier) UpdateDSCommitteeComposition(selfKeyPub string, dsComm *list.List, dsBlock *core.DsBlock) (*list.List, error)

func (*Verifier) VerifyDsBlock

func (v *Verifier) VerifyDsBlock(dsBlock *core.DsBlock, dsComm *list.List) (*list.List, error)

0. verify current ds block 2. generate next ds committee return new ds comm

func (*Verifier) VerifyTxBlock

func (v *Verifier) VerifyTxBlock(txBlock *core.TxBlock, dsComm *list.List) error

Jump to

Keyboard shortcuts

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