Skip to content

Commit

Permalink
Proper verification
Browse files Browse the repository at this point in the history
  • Loading branch information
lebedenko-ubique committed Sep 26, 2024
1 parent f4fa425 commit f7b91cc
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions next-gen-signatures/src/crypto.rs
Original file line number Diff line number Diff line change
Expand Up @@ -245,6 +245,10 @@ pub mod bbs {

let (pk, params) = fix_arguments!($g1, pk, params);

if !pk.is_valid() || !params.is_valid() {
anyhow::bail!("Invalid params!");
}

Ok(sig
.verify(
&[BigUint::from_bytes_le(&msg).into()],
Expand Down

0 comments on commit f7b91cc

Please sign in to comment.