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

Limit size of signatures to 96 bytes #423

Merged
merged 1 commit into from
Jul 7, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
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: 6 additions & 6 deletions gpbft/gen.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 3 additions & 3 deletions gpbft/gpbft.go
Original file line number Diff line number Diff line change
Expand Up @@ -64,9 +64,9 @@ type GMessage struct {
// Vote is the payload that is signed by the signature
Vote Payload
// Signature by the sender's public key over Instance || Round || Step || Value.
Signature []byte
Signature []byte `cborgen:"maxlen=96"`
// VRF ticket for CONVERGE messages (otherwise empty byte array).
Ticket Ticket
Ticket Ticket `cborgen:"maxlen=96"`
// Justification for this message (some messages must be justified by a strong quorum of messages from some previous step).
Justification *Justification
}
Expand All @@ -77,7 +77,7 @@ type Justification struct {
// Indexes in the base power table of the signers (bitset)
Signers bitfield.BitField
// BLS aggregate signature of signers
Signature []byte
Signature []byte `cborgen:"maxlen=96"`
}

type SupplementalData struct {
Expand Down
Loading