Skip to content

Commit

Permalink
Document mutability of Mask fields
Browse files Browse the repository at this point in the history
  • Loading branch information
Stebalien committed Sep 11, 2024
1 parent 2c83bb2 commit 3be7817
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions sign/bdn/mask.go
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,15 @@ import (

// Mask is a bitmask of the participation to a collective signature.
type Mask struct {
mask []byte
publics []kyber.Point
// The bitmask indicating which public keys are enabled/disabled for aggregation. This is
// the only mutable field.
mask []byte

// The following fields are immutable and should not be changed after the mask is created.
// They may be shared between multiple masks.

// Public keys for aggregation & signature verification.
publics []kyber.Point
// Coefficients used when aggregating signatures.
publicCoefs []kyber.Scalar
// Terms used to aggregate public keys
Expand Down

0 comments on commit 3be7817

Please sign in to comment.