Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: rare failing case in multisig #98

Merged
merged 4 commits into from
Sep 10, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading