arnaucube
arnaucube/go-snarkPublic Self-hosted repository
go-snark/wasm/index.html
wasm/index.htmlRaw
 1<html>
 2<head>
 3	<meta charset="utf-8">
 4	<title>go-snark wasm experiments</title>
 5</head>
 6<body>
 7	<script src="wasm_exec.js"></script>
 8	<script>
 9		const go = new Go();
10		WebAssembly.instantiateStreaming(fetch('go-snark.wasm'), go.importObject).then(function(dat) {
11		    go.run(dat.instance);
12		});
13	</script>
14	<button onClick="callGenerateProof();">Generate Proof</button>
15	<textarea id="proofResult" rows="15" style="width: 80%;">
16	</textarea>
17	<script src="index.js"></script>
18</body>
19</html>