You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

19 lines
494 B

  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>