Skip to content

Commit

Permalink
Update MuSig (#60)
Browse files Browse the repository at this point in the history
Update hash
  • Loading branch information
XuJiandong authored May 17, 2022
1 parent c352ba3 commit 716433e
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion build.rs
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ const BINARIES: &[(&str, &str)] = &[
),
(
"omni_lock",
"f18e295b6a9286108639df659b822b1cc75216776df3d52ac9ed11a1dadadee5"
"635f78eba450cb2f73f113022ff62e4bbfb5a39b7368c375c6a731ba4c85c59e"
)
];

Expand Down
4 changes: 2 additions & 2 deletions c/ckb_identity.h
Original file line number Diff line number Diff line change
Expand Up @@ -532,8 +532,8 @@ int verify_multisig(const uint8_t *lock_bytes, size_t lock_bytes_len,
// Verify threshold signatures, threshold is a uint8_t, at most it is
// 255, meaning this array will definitely have a reasonable upper bound.
// Also this code uses C99's new feature to allocate a variable length array.
uint8_t used_signatures[threshold];
memset(used_signatures, 0, threshold);
uint8_t used_signatures[pubkeys_cnt];
memset(used_signatures, 0, pubkeys_cnt);

// We are using bitcoin's [secp256k1
// library](https://github.com/bitcoin-core/secp256k1) for signature
Expand Down

0 comments on commit 716433e

Please sign in to comment.