Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Audit #10

Open
wants to merge 22 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 10 additions & 2 deletions core/backend.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,11 @@ import (
// MessageConstructor defines a message constructor interface
type MessageConstructor interface {
// BuildPrePrepareMessage builds a PREPREPARE message based on the passed in proposal
BuildPrePrepareMessage(proposal *proto.ProposedBlock, certificate *proto.RoundChangeCertificate, view *proto.View) *proto.Message
BuildPrePrepareMessage(
proposal *proto.ProposedBlock,
certificate *proto.RoundChangeCertificate,
view *proto.View,
) *proto.Message

// BuildPrepareMessage builds a PREPARE message based on the passed in proposal
BuildPrepareMessage(proposalHash []byte, view *proto.View) *proto.Message
Expand All @@ -17,7 +21,11 @@ type MessageConstructor interface {
BuildCommitMessage(proposalHash []byte, view *proto.View) *proto.Message

// BuildRoundChangeMessage builds a ROUND_CHANGE message based on the passed in proposal
BuildRoundChangeMessage(proposal *proto.ProposedBlock, certificate *proto.PreparedCertificate, view *proto.View) *proto.Message
BuildRoundChangeMessage(
proposal *proto.ProposedBlock,
certificate *proto.PreparedCertificate,
view *proto.View,
) *proto.Message
}

// Verifier defines the verifier interface
Expand Down
Loading