mirror of
https://github.com/aljazceru/ark.git
synced 2025-12-17 04:04:21 +01:00
* Rename asp > server * Rename pool > round * Consolidate naming for pubkey/prvkey vars and types * Fix * Fix * Fix wasm * Rename congestionTree > vtxoTree * Fix wasm * Rename payment > request * Rename congestionTree > vtxoTree after syncing with master * Fix Send API in SDK * Fix wasm * Fix wasm * Fixes * Fixes after review * Fix * Fix naming * Fix * Fix e2e tests
USAGE
This example demonstrates how to compile ARK Go SDK to WebAssembly and use it in a web page.
-
Copy
wasm_exec.jsto a new directory:cp $(go env GOROOT)/misc/wasm/wasm_exec.js . -
On the root directory of this repo, build the Go code to WebAssembly:
make build-wasm -
Move the wasm file to your directory
mv <repo>/pkg/client-sdk/build/ark-sdk.wasm . -
Load the WebAssembly module in a web page, check index.html.
-
Serve the files:
python3 -m http.server 8000