Skip to content

Commit 7b2d431

Browse files
OttoAllmendingerllm-git
andcommitted
feat(wasm-utxo): add bech32 support for altcoin addresses
Add bech32 dependency for supporting altcoin address formats. Configure dependency management with deny.toml to prevent duplicate dependencies. Issue: BTC-2650 Co-authored-by: llm-git <[email protected]>
1 parent 92a82aa commit 7b2d431

File tree

4 files changed

+26
-0
lines changed

4 files changed

+26
-0
lines changed

.github/workflows/ci.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,7 @@ jobs:
4646
rustup component add rustfmt
4747
cargo install wasm-pack --version 0.13.1
4848
cargo install wasm-opt --version 0.116.1
49+
cargo install cargo-deny --locked
4950
5051
- name: Build Info
5152
run: |
@@ -54,6 +55,7 @@ jobs:
5455
echo "rustc $(rustc --version)"
5556
echo "wasm-pack $(wasm-pack --version)"
5657
echo "wasm-opt $(wasm-opt --version)"
58+
echo "cargo-deny $(cargo deny --version)"
5759
git --version
5860
echo "base ref $GITHUB_BASE_REF"
5961
echo "head ref $GITHUB_HEAD_REF"
@@ -65,6 +67,10 @@ jobs:
6567
- name: Install Packages
6668
run: npm ci --workspaces --include-workspace-root
6769

70+
- name: Check dependencies with cargo-deny
71+
run: cargo deny check
72+
working-directory: packages/wasm-utxo
73+
6874
- name: test
6975
run: npx --version
7076

packages/wasm-utxo/Cargo.lock

Lines changed: 1 addition & 0 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: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ crate-type = ["cdylib"]
1010
wasm-bindgen = "0.2"
1111
js-sys = "0.3"
1212
miniscript = { git = "https://github.com/BitGo/rust-miniscript", tag = "miniscript-12.3.4-opdrop" }
13+
bech32 = "0.11"
1314

1415
[dev-dependencies]
1516
base64 = "0.22.1"

packages/wasm-utxo/deny.toml

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
# Deny multiple versions of dependencies
2+
[bans]
3+
multiple-versions = "deny"
4+
# Highlight bech32 specifically (ensures it's caught if duplicated)
5+
highlight = "all"
6+
7+
# Allow git sources (needed for miniscript)
8+
[sources]
9+
allow-git = ["https://github.com/BitGo/rust-miniscript"]
10+
11+
# Allow common licenses used in the Rust ecosystem
12+
[licenses]
13+
allow = ["MIT", "Apache-2.0", "CC0-1.0", "MITNFA", "Unicode-DFS-2016"]
14+
# Clarify license for unlicensed crate
15+
[[licenses.clarify]]
16+
name = "wasm-utxo"
17+
expression = "MIT OR Apache-2.0"
18+
license-files = []

0 commit comments

Comments
 (0)