Skip to content

Commit 3f2b05d

Browse files
OttoAllmendingerllm-git
andcommitted
feat(wasm-utxo): add MuSig2 external crate implementation
Add k256-based MuSig2 crate to implement BIP327 key aggregation. This allows us to use a standard implementation while maintaining our own legacy algorithms for backward compatibility. Includes test cases to verify that external crate produces identical results to our internal implementation. Issue: BTC-2652 Co-authored-by: llm-git <[email protected]>
1 parent 29fb259 commit 3f2b05d

File tree

4 files changed

+416
-49
lines changed

4 files changed

+416
-49
lines changed

packages/wasm-utxo/Cargo.lock

Lines changed: 209 additions & 8 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

packages/wasm-utxo/Cargo.toml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,8 @@ wasm-bindgen = "0.2"
1818
js-sys = "0.3"
1919
miniscript = { git = "https://github.com/BitGo/rust-miniscript", tag = "miniscript-12.3.4-opdrop" }
2020
bech32 = "0.11"
21+
musig2 = { version = "0.3.1", default-features = false, features = ["k256"] }
22+
getrandom = { version = "0.2", features = ["js"] }
2123

2224
[dev-dependencies]
2325
base64 = "0.22.1"

packages/wasm-utxo/deny.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ allow-git = ["https://github.com/BitGo/rust-miniscript"]
1010

1111
# Allow common licenses used in the Rust ecosystem
1212
[licenses]
13-
allow = ["MIT", "Apache-2.0", "CC0-1.0", "MITNFA", "Unicode-DFS-2016"]
13+
allow = ["MIT", "Apache-2.0", "CC0-1.0", "MITNFA", "Unicode-DFS-2016", "BSD-3-Clause", "Unlicense"]
1414
# Clarify license for unlicensed crate
1515
[[licenses.clarify]]
1616
name = "wasm-utxo"

0 commit comments

Comments
 (0)