Add WASM wrappers & compiled

This commit is contained in:
arnaucube
2021-01-10 23:09:54 +01:00
parent a7ea30d815
commit c3e4afc552
10 changed files with 159 additions and 1 deletions

18
wasm/webtest/index.html Normal file
View File

@@ -0,0 +1,18 @@
<html>
<head>
<meta charset="utf-8">
<title>blindsecp256k1 WASM wrappers</title>
</head>
<body>
<script src="wasm_exec.js"></script>
<script>
const go = new Go();
WebAssembly.instantiateStreaming(fetch('blindsecp256k1.wasm'), go.importObject).then(function(dat) {
go.run(dat.instance);
});
</script>
<h3>Open the browser console to see the logs</h3>
<button onClick="test();">test()</button>
<script src="index.js"></script>
</body>
</html>