chainduobft

package
v0.0.0-...-3a733ff Latest Latest
Warning

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

Go to latest
Published: May 24, 2022 License: MIT Imports: 20 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrHashMismatch = fmt.Errorf("certificate hash does not match block hash")

ErrHashMismatch is the error used when a partial certificate hash does not match the hash of a block.

View Source
var ErrPartialDuplicate = fmt.Errorf("cannot add more than one signature per replica")

ErrPartialDuplicate is the error used when two or more signatures were created by the same replica.

Functions

func MakeUsigSignerEnclave

func MakeUsigSignerEnclave(enclaveFilePath string, numCounters int) (*usig.UsigEnclave, ed25519.PublicKey, ed25519.PrivateKey)

Types

type ChainDuoBFT

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

func NewChainDuoBFT

func NewChainDuoBFT(cfg *peer.LocalConfig) *ChainDuoBFT

func NewChainDuoBFTWithEnclave

func NewChainDuoBFTWithEnclave(
	cfg *peer.LocalConfig, initialView pb.View,
	enclave *usig.UsigEnclave, ctrID int,
	usigDispatcher, signDispatcher, fastVerifyDispatcher, slowVerifyDispatcher *worker.Dispatcher,
	pubKey ed25519.PublicKey, privKey ed25519.PrivateKey,
) *ChainDuoBFT

func (*ChainDuoBFT) AsyncCallback

func (d *ChainDuoBFT) AsyncCallback()

func (*ChainDuoBFT) Callback

func (*ChainDuoBFT) Callback(peer.ExecCallback)

func (*ChainDuoBFT) ClearExecutedCommands

func (d *ChainDuoBFT) ClearExecutedCommands()

func (*ChainDuoBFT) ClearMsgs

func (d *ChainDuoBFT) ClearMsgs()

func (*ChainDuoBFT) HasFastExecuted

func (d *ChainDuoBFT) HasFastExecuted(cmd *commandpb.Command) bool

func (*ChainDuoBFT) MakeReady

func (d *ChainDuoBFT) MakeReady() peer.Ready

func (*ChainDuoBFT) Request

func (d *ChainDuoBFT) Request(cmd *commandpb.Command)

func (*ChainDuoBFT) Step

func (d *ChainDuoBFT) Step(message peerpb.Message)

func (*ChainDuoBFT) Tick

func (d *ChainDuoBFT) Tick()

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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