File tree Expand file tree Collapse file tree 3 files changed +13
-0
lines changed Expand file tree Collapse file tree 3 files changed +13
-0
lines changed Original file line number Diff line number Diff line change
1
+ use std:: env;
2
+
3
+ fn main ( ) {
4
+ let target_arch = env:: var ( "CARGO_CFG_TARGET_ARCH" ) . unwrap ( ) ;
5
+ let target_no_batch_verify_aggregates =
6
+ target_arch. eq ( "wasm32" ) || env:: var ( "STM_TEST_NO_BATCH_VERIFY_AGGREGATES" ) . is_ok ( ) ;
7
+
8
+ if !target_no_batch_verify_aggregates {
9
+ println ! ( "cargo:rustc-cfg=feature=\" batch-verify-aggregates\" " ) ;
10
+ }
11
+ }
Original file line number Diff line number Diff line change @@ -404,6 +404,7 @@ impl Signature {
404
404
}
405
405
406
406
/// Batch verify several sets of signatures with their corresponding verification keys.
407
+ #[ cfg( feature = "batch-verify-aggregates" ) ]
407
408
pub fn batch_verify_aggregates (
408
409
msgs : & [ Vec < u8 > ] ,
409
410
vks : & [ VerificationKey ] ,
Original file line number Diff line number Diff line change @@ -789,6 +789,7 @@ impl<D: Clone + Digest + FixedOutput + Send + Sync> StmAggrSig<D> {
789
789
}
790
790
791
791
/// Batch verify a set of signatures, with different messages and avks.
792
+ #[ cfg( feature = "batch-verify-aggregates" ) ]
792
793
pub fn batch_verify (
793
794
stm_signatures : & [ Self ] ,
794
795
msgs : & [ Vec < u8 > ] ,
You can’t perform that action at this time.
0 commit comments