Skip to content

Commit

Permalink
Limit size of signatures to 96 bytes
Browse files Browse the repository at this point in the history
Signed-off-by: Jakub Sztandera <[email protected]>
  • Loading branch information
Kubuxu committed Jul 7, 2024
1 parent b5674db commit b7ac43a
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 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

0 comments on commit b7ac43a

Please sign in to comment.