Skip to content

Add WASM build support with modern Go#35

Open
0pcom wants to merge 5 commits intoskycoin:masterfrom
0pcom:master
Open

Add WASM build support with modern Go#35
0pcom wants to merge 5 commits intoskycoin:masterfrom
0pcom:master

Conversation

@0pcom
Copy link
Copy Markdown

@0pcom 0pcom commented Oct 20, 2025

  • Created wasm/main.go entry point that exposes SkycoinCipher.generateAddress() and SkycoinCipher.prepareTransaction() to browser
  • Compiled with Go 1.25 to skycoin-lite.wasm (4.7MB)
  • Recompiled with tinygo (1.5mb)
  • Replaces old GopherJS-only build system with WebAssembly support for modern browsers

- Created wasm/main.go entry point that exposes SkycoinCipher.generateAddress() and SkycoinCipher.prepareTransaction() to browser
- Compiled with Go 1.25 to skycoin-lite.wasm (4.7MB)
- Replaces old GopherJS-only build system with WebAssembly support for modern browsers
Moses Narrow added 4 commits October 21, 2025 16:27
- Created cmd/gen tool to compile WASM with both Go and TinyGo
- Generated wasm-go/skycoin-lite.wasm (4.5M) and wasm-tinygo/skycoin-lite.wasm (1.6M)
- Added embed directives to serve compiled WASM at runtime
- Updated Makefile with build-wasm target
- Updated dependencies for script, spinner, and cobra libraries
@0pcom
Copy link
Copy Markdown
Author

0pcom commented Nov 1, 2025

NOTE: the skycoin-web and skycoin-lite source code (the changes on this PR) have been added to the cobra-cli branch of github.com/skycoin/skycoin

Merging this PR is only necessary if the source code for these repos should not be included in github.com/skycoin/skycoin

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.

1 participant