arnaucube
arnaucube/blindsig-client-server-examplePublic Self-hosted repository
blindsig-client-server-example/README.md
README.mdRaw
 1# blindsig-client-server-example
 2Example of usage of [go-blindsecp256k1](https://github.com/arnaucube/go-blindsecp256k1) & [blindsecp256k1-js](https://github.com/arnaucube/blindsecp256k1-js), including a server representing the 'signer', and a web representing the 'user'.
 3
 4## Run
 5- Needs [go](https://golang.org/) installed
 6- If wants to use the WASM web version:
 7	- Add the file `wasm_exec.js` in the `client` directory:
 8	```
 9	cd client
10	cp "$(go env GOROOT)/misc/wasm/wasm_exec.js" .
11	```
12- Run the server:
13```
14go run main.go
15```
16- Open the browser at `127.0.0.1:3000/web`
17	- `/web/index.html` shows the js version
18	- `/web/index-wasm.html` shows the WASM version
19
20## Loop test
21Check [loop-test](https://github.com/arnaucube/blindsig-client-server-example/blob/master/client/loop-test/README.md) for more details.
22
23## Flow
24![diagram](https://raw.githubusercontent.com/arnaucube/blindsig-client-server-example/master/diagram.png "diagram")