Skip to content

Commit

Permalink
fix: rare failing case in multisig (#98)
Browse files Browse the repository at this point in the history
* fix: rare failing case in multisig
* update docco to 0.9.1
  • Loading branch information
XuJiandong authored Sep 10, 2024
1 parent a7b7c75 commit 9341664
Show file tree
Hide file tree
Showing 11 changed files with 565 additions and 536 deletions.
151 changes: 90 additions & 61 deletions .npm/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion .npm/package.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"dependencies": {
"docco": "=0.8.0"
"docco": "=0.9.1"
}
}
2 changes: 1 addition & 1 deletion build.rs
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ const BINARIES: &[(&str, &str)] = &[
),
(
"secp256k1_blake160_multisig_all",
"43400de165f0821abf63dcac299bbdf7fd73898675ee4ddb099b0a0d8db63bfb",
"50c8623ef5112510ccdf2d8e480d02d0de7288eb9968f8b019817340c3991145",
),
];

Expand Down
4 changes: 2 additions & 2 deletions c/secp256k1_blake160_multisig_all.c
Original file line number Diff line number Diff line change
Expand Up @@ -285,8 +285,8 @@ int main() {
// 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 verification here. To the best of our knowledge, this is an unmatched
Expand Down
Loading

0 comments on commit 9341664

Please sign in to comment.