feat(wasm): add WebAssembly API surface for browser execution#424
Merged
Nanle-code merged 1 commit intoJun 27, 2026
Merged
Conversation
Add a self-contained `starforge-wasm` crate that compiles StarForge's core wallet functionality to WebAssembly (`wasm32-unknown-unknown`), enabling browser-based execution in web IDEs and dev environments. It exposes a wasm-bindgen API for browser wallet management (random keypair generation, BIP39 mnemonic generation, SEP-0005 derivation, address validation) and browser storage for configuration via localStorage. The crate depends only on pure-Rust crypto primitives so the native CLI build is unaffected. Closes Nanle-code#341 Closes Nanle-code#342 Closes Nanle-code#345 Closes Nanle-code#324 Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
|
@manoahLinks Great news! 🎉 Based on an automated assessment of this PR, the linked Wave issue(s) no longer count against your application limits. You can now already apply to more issues while waiting for a review of this PR. Keep up the great work! 🚀 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Add a self-contained
starforge-wasmcrate that compiles StarForge's core wallet functionality to WebAssembly (wasm32-unknown-unknown), enabling browser-based execution in web IDEs and dev environments. It exposes a wasm-bindgen API for browser wallet management (random keypair generation, BIP39 mnemonic generation, SEP-0005 derivation, address validation) and browser storage for configuration via localStorage. The crate depends only on pure-Rust crypto primitives so the native CLI build is unaffected.Closes #341
Closes #342
Closes #345
Closes #324
Description
Brief description of what this PR does and why.
Closes #(issue number)
Type of Change
Changes Made
Testing
How has this been tested?
Describe the tests you ran and how to reproduce them.
Test Coverage
Describe what scenarios have been tested:
Code Quality Checklist
cargo fmt)cargo clippy -- -D warnings)Breaking Changes
If checked, describe the breaking changes and migration path:
Documentation
Screenshots (if applicable)
Add screenshots or GIFs for UI changes.
Additional Context
Add any other context about the PR here.
Note: Make sure all tests pass locally before submitting:
cargo test cargo fmt --all cargo clippy -- -D warnings