Skip to content

Commit

Permalink
Merge pull request #693 from ergoplatform/i692-atleast-7-of-10
Browse files Browse the repository at this point in the history
add multi-sig test for AtLeast 2/3, 3/4 and 7/10;
  • Loading branch information
greenhat authored Mar 13, 2023
2 parents b8ca00f + cd9fe80 commit 248818e
Show file tree
Hide file tree
Showing 6 changed files with 839 additions and 52 deletions.
1 change: 1 addition & 0 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,7 @@ tokio-util = { version = "0.6.9", features = ["codec"] }
bounded-integer = { version = "^0.5", features = ["types"] }
url = "2.2"
getrandom = { version = "0.2.7" }
itertools = "0.10.3"

# dev-dependencies
proptest = { version = "=1.0", default-features = false, features = ["std"] }
Expand Down
1 change: 1 addition & 0 deletions ergo-lib/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,7 @@ unicode-normalization = "0.1.19"
lazy_static = { workspace = true }
proptest = { workspace = true , optional = true }
serde_with = { workspace = true, optional = true }
itertools = { workspace = true }


[features]
Expand Down
2 changes: 1 addition & 1 deletion ergo-lib/src/wallet.rs
Original file line number Diff line number Diff line change
Expand Up @@ -139,7 +139,7 @@ impl Wallet {
.collect();
for (index, input) in reduced_tx.reduced_inputs().iter().enumerate() {
let sigma_prop = input.clone().reduction_result.sigma_prop;
let hints = generate_commitments_for(sigma_prop, &public_keys);
let hints = generate_commitments_for(&sigma_prop, &public_keys);
tx_hints.add_hints_for_input(index, hints);
}
Ok(tx_hints)
Expand Down
Loading

0 comments on commit 248818e

Please sign in to comment.