Files
ark/pkg/client-sdk/example/covenantless/wasm
Louis Singer bcb2b2075f Add support for Out Of Round txs (#359)
* [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>
2024-10-24 17:43:27 +02:00
..

USAGE

This example demonstrates how to compile ARK Go SDK to WebAssembly and use it in a web page.

  1. Copy wasm_exec.js to a new directory:

    cp $(go env GOROOT)/misc/wasm/wasm_exec.js .
    
  2. On the root directory of this repo, build the Go code to WebAssembly:

    make build-wasm
    
  3. Move the wasm file to your directory

    mv <repo>/pkg/client-sdk/build/ark-sdk.wasm .
    
    
  4. Load the WebAssembly module in a web page, check index.html.

  5. Serve the files:

    python3 -m http.server 8000