Skip to content

Commit

Permalink
zkp: Add Musig2 module
Browse files Browse the repository at this point in the history
squash! zkp: Add Musig2 module

Remove agg_pk from KeyAggCache

Co-authored-by: sanket1729 <[email protected]>
  • Loading branch information
GeneFerneau and sanket1729 committed Apr 15, 2022
1 parent 7c9dfff commit 9694636
Show file tree
Hide file tree
Showing 3 changed files with 1,741 additions and 0 deletions.
10 changes: 10 additions & 0 deletions contrib/test.sh
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,16 @@ then
alias cargo="cargo +$TOOLCHAIN"
fi

# Address Sanitizer
if [ "$DO_ASAN" = true ]; then
cargo clean
CC='clang -fsanitize=address -fno-omit-frame-pointer' \
RUSTFLAGS='-Zsanitizer=address -Clinker=clang -Cforce-frame-pointers=yes' \
ASAN_OPTIONS='detect_leaks=1 detect_invalid_pointer_pairs=1 detect_stack_use_after_return=1' \
cargo test --lib --features="$FEATURES" -Zbuild-std --target x86_64-unknown-linux-gnu test_nonce
fi


cargo --version
rustc --version

Expand Down
7 changes: 7 additions & 0 deletions src/zkp/mod.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,10 @@
mod ecdsa_adaptor;
mod generator;
#[cfg(feature = "std")]
mod musig;
#[cfg(feature = "std")]
pub use self::musig::new_musig_nonce_pair;

#[cfg(feature = "std")]
mod pedersen;
#[cfg(feature = "std")]
Expand All @@ -12,6 +17,8 @@ mod whitelist;
pub use self::ecdsa_adaptor::*;
pub use self::generator::*;
#[cfg(feature = "std")]
pub use self::musig::*;
#[cfg(feature = "std")]
pub use self::pedersen::*;
#[cfg(feature = "std")]
pub use self::rangeproof::*;
Expand Down
Loading

0 comments on commit 9694636

Please sign in to comment.