Skip to content

feat(wasm): add WebAssembly API surface for browser execution#424

Merged
Nanle-code merged 1 commit into
Nanle-code:masterfrom
manoahLinks:feat/issue-341-wasm-support
Jun 27, 2026
Merged

feat(wasm): add WebAssembly API surface for browser execution#424
Nanle-code merged 1 commit into
Nanle-code:masterfrom
manoahLinks:feat/issue-341-wasm-support

Conversation

@manoahLinks

Copy link
Copy Markdown
Contributor

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 #341
Closes #342
Closes #345
Closes #324

Description

Brief description of what this PR does and why.

Closes #(issue number)

Type of Change

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to change)
  • Documentation update

Changes Made

  • Change 1
  • Change 2
  • Change 3

Testing

How has this been tested?

Describe the tests you ran and how to reproduce them.

  • Unit tests added/updated
  • Integration tests added/updated
  • Manual testing performed

Test Coverage

Describe what scenarios have been tested:

  • Happy path:
  • Edge cases:
  • Error handling:

Code Quality Checklist

  • My code follows the style guidelines of this project (cargo fmt)
  • I have performed a self-review of my own code
  • I have commented my code, particularly in hard-to-understand areas
  • I have made corresponding changes to the documentation
  • My changes generate no new warnings (cargo clippy -- -D warnings)
  • I have added tests that prove my fix is effective or that my feature works
  • New and existing unit tests pass locally with my changes
  • The CI checks pass (format, clippy, tests)

Breaking Changes

  • This PR introduces breaking changes

If checked, describe the breaking changes and migration path:

Documentation

  • README.md updated
  • DEVELOPER_GUIDE.md updated (if applicable)
  • API_REFERENCE.md updated (if applicable)
  • No documentation changes needed

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

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>
@drips-wave

drips-wave Bot commented Jun 27, 2026

Copy link
Copy Markdown

@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! 🚀

Learn more about application limits

@Nanle-code Nanle-code merged commit 94fc618 into Nanle-code:master Jun 27, 2026
4 of 5 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

2 participants