Documentation ¶
Index ¶
- Variables
- func MakeUsigSignerEnclave(enclaveFilePath string, numCounters int) (*usig.UsigEnclave, ed25519.PublicKey, ed25519.PrivateKey)
- type ChainDuoBFT
- func (d *ChainDuoBFT) AsyncCallback()
- func (*ChainDuoBFT) Callback(peer.ExecCallback)
- func (d *ChainDuoBFT) ClearExecutedCommands()
- func (d *ChainDuoBFT) ClearMsgs()
- func (d *ChainDuoBFT) HasFastExecuted(cmd *commandpb.Command) bool
- func (d *ChainDuoBFT) MakeReady() peer.Ready
- func (d *ChainDuoBFT) Request(cmd *commandpb.Command)
- func (d *ChainDuoBFT) Step(message peerpb.Message)
- func (d *ChainDuoBFT) Tick()
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()
Source Files ¶
Click to show internal directories.
Click to hide internal directories.