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.

24 lines
942 B

  1. # blindsig-client-server-example
  2. Example 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. ## Run
  4. - Needs [go](https://golang.org/) installed
  5. - If wants to use the WASM web version:
  6. - Add the file `wasm_exec.js` in the `client` directory:
  7. ```
  8. cd client
  9. cp "$(go env GOROOT)/misc/wasm/wasm_exec.js" .
  10. ```
  11. - Run the server:
  12. ```
  13. go run main.go
  14. ```
  15. - Open the browser at `127.0.0.1:3000/web`
  16. - `/web/index.html` shows the js version
  17. - `/web/index-wasm.html` shows the WASM version
  18. ## Loop test
  19. Check [loop-test](https://github.com/arnaucube/blindsig-client-server-example/blob/master/client/loop-test/README.md) for more details.
  20. ## Flow
  21. ![diagram](https://raw.githubusercontent.com/arnaucube/blindsig-client-server-example/master/diagram.png "diagram")