Skip to content

Commit

Permalink
Fixes following cargo fmt
Browse files Browse the repository at this point in the history
  • Loading branch information
aniampio authored and jstuczyn committed Oct 18, 2024
1 parent f37eb9d commit 25326e5
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 5 deletions.
5 changes: 1 addition & 4 deletions common/nymcoconut/src/scheme/issuance.rs
Original file line number Diff line number Diff line change
Expand Up @@ -452,10 +452,7 @@ pub fn verify_partial_blind_signature(
}

/// Creates a Coconut Signature under a given secret key on a set of public attributes only.
pub fn sign(
secret_key: &SecretKey,
public_attributes: &[&Attribute],
) -> Result<Signature> {
pub fn sign(secret_key: &SecretKey, public_attributes: &[&Attribute]) -> Result<Signature> {
if public_attributes.len() > secret_key.ys.len() {
return Err(CoconutError::IssuanceMaxAttributes {
max: secret_key.ys.len(),
Expand Down
1 change: 0 additions & 1 deletion common/nymcoconut/src/scheme/verification.rs
Original file line number Diff line number Diff line change
Expand Up @@ -429,5 +429,4 @@ mod tests {
&forged_signature_2
));
}

}

0 comments on commit 25326e5

Please sign in to comment.