go-blindsecp256k1/wasm/webtest/index.html
wasm/webtest/index.htmlRaw
1<html>
2<head>
3 <meta charset="utf-8">
4 <title>blindsecp256k1 WASM wrappers</title>
5</head>
6<body>
7 <script src="wasm_exec.js"></script>
8 <script>
9 const go = new Go();
10 WebAssembly.instantiateStreaming(fetch('blindsecp256k1.wasm'), go.importObject).then(function(dat) {
11 go.run(dat.instance);
12 });
13 </script>
14 <h3>Open the browser console to see the logs</h3>
15 <button onClick="test();">test()</button>
16 <script src="index.js"></script>
17</body>
18</html>