wasm

command
v0.0.4 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 30, 2019 License: GPL-3.0 Imports: 7 Imported by: 0

README

go-snark wasm

Warning: this is an ongoing experimentation

WASM wrappers for zkSNARK Pinocchio & Groth16 protocols.

Wasm usage

To compile to wasm, inside the wasm directory, execute:

GOARCH=wasm GOOS=js go build -o go-snark.wasm go-snark-wasm-wrapper.go

Add the file wasm_exec.js in the directory:

cp "$(go env GOROOT)/misc/wasm/wasm_exec.js" .

To see the usage from javascript, check index.js file.

Run the http server that allows to load the .wasm file:

node server.js

Documentation

The Go Gopher

There is no documentation for this package.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL