mirror of
https://github.com/aljazceru/ark.git
synced 2025-12-19 13:14:21 +01:00
* [common] rework address encoding * new address encoding * replace offchain address by vtxo output key in DB * merge migrations files into init one * fix txbuilder fixtures * fix transaction events * OOR scheme * fix conflicts * [sdk] OOR * update WASM wrappers * revert renaming * revert API changes * update parser.go * fix vtxosToTxsCovenantless * add settled and spent in Utxo and Transaction * Fixes (#5) * Revert unneeded changes and rename claim to settle * Revert changes to wasm and rename claim to settle --------- Co-authored-by: Pietralberto Mazza <18440657+altafan@users.noreply.github.com>
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