Skip to content

feat: expose address encode/decode/validate to WASM/JS#202

Merged
lcovar merged 1 commit intomasterfrom
BTC-3124.dot-wasm-address-bindings
Mar 10, 2026
Merged

feat: expose address encode/decode/validate to WASM/JS#202
lcovar merged 1 commit intomasterfrom
BTC-3124.dot-wasm-address-bindings

Conversation

@lcovar
Copy link
Contributor

@lcovar lcovar commented Mar 10, 2026

Add WASM bindings for the existing SS58 address functions so consumers like wallet-platform can use them directly instead of reimplementing SS58 encoding in TypeScript.

  • src/wasm/address.rs: thin #[wasm_bindgen] wrappers around core address functions
  • js/address.ts: typed TS wrapper using AddressFormat enum
  • test/address.ts: encode/decode/validate roundtrip tests

BTC-3124

@lcovar lcovar requested a review from a team as a code owner March 10, 2026 20:50
@lcovar lcovar enabled auto-merge March 10, 2026 20:58
Add WASM bindings for the existing SS58 address functions so consumers
like wallet-platform can use them directly instead of reimplementing
SS58 encoding in TypeScript.

- src/wasm/address.rs: thin #[wasm_bindgen] wrappers around core address functions
- js/address.ts: typed TS wrapper using AddressFormat enum
- test/address.ts: encode/decode/validate roundtrip tests

BTC-3124
@lcovar lcovar force-pushed the BTC-3124.dot-wasm-address-bindings branch from de99dd3 to 318819a Compare March 10, 2026 21:01
@lcovar lcovar merged commit 19ee5a9 into master Mar 10, 2026
13 checks passed
@lcovar lcovar deleted the BTC-3124.dot-wasm-address-bindings branch March 10, 2026 21:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants