arnaucube
arnaucube/blindsig-client-server-examplePublic Self-hosted repository
blindsig-client-server-example/client/index.html
client/index.htmlRaw
 1<html>
 2	<head>
 3		<meta charset="utf-8">
 4		<title>blindsig-client-server-example</title>
 5	</head>
 6	<body>
 7		<h3>blindsig-client-server-example (client in js version)</h3>
 8		<p>This is an example of usage of <a href="https://github.com/arnaucube/go-blindsecp256k1" target="_blank">https://github.com/arnaucube/go-blindsecp256k1</a></p>
 9		<br>
10		Message (only numbers): <input id="msg" value="1234"></input>
11		<button onClick="newRequest();">newRequest()</button>
12		<p id="signerR"></p>
13		<p id="signerQ"></p>
14
15		<button onClick="askBlindSign();">askBlindSign()</button>
16		<p id="sBlind"></p>
17		<p id="sig"></p>
18
19		<button onClick="verify();">verify()</button>
20		<p id="verified"></p>
21
22		<a href="index-wasm.html">View the WASM version</a>
23
24		<script src="https://cdn.jsdelivr.net/npm/axios/dist/axios.min.js"></script>
25		<script src="blindsecp256k1-browser.js"></script>
26		<script src="index.js"></script>
27	</body>
28</html>