Skip to content

Commit 74f8b09

Browse files
OttoAllmendingerllm-git
andcommitted
feat(wasm-utxo): add musig2 crate as dependency
Add the musig2 crate and secp256k1 dependencies to support MuSig2 signature aggregation. Configure getrandom crate with js feature. Also added a compiler flag to fix secp256k1-sys compilation with strict compilers. Issue: BTC-2652 Co-authored-by: llm-git <[email protected]>
1 parent 29fb259 commit 74f8b09

File tree

3 files changed

+154
-12
lines changed

3 files changed

+154
-12
lines changed

packages/wasm-utxo/Cargo.lock

Lines changed: 148 additions & 12 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: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,9 @@ 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+
secp256k1 = { version = "0.31.1" }
22+
musig2 = { version = "0.3.1" }
23+
getrandom = { version = "0.2", features = ["js"] }
2124

2225
[dev-dependencies]
2326
base64 = "0.22.1"

packages/wasm-utxo/Makefile

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,9 @@ WASM_PACK = wasm-pack
22
WASM_OPT = wasm-opt
33
WASM_PACK_FLAGS = --no-pack --weak-refs
44

5+
# Fix for secp256k1-sys compilation with strict compilers
6+
export CFLAGS = -Wno-error=implicit-function-declaration
7+
58
ifdef WASM_PACK_DEV
69
WASM_PACK_FLAGS += --dev
710
endif

0 commit comments

Comments
 (0)