Working with GHC 9.6.7 and Cabal 3.12.1.0
Replace XXXX with the port number (default is 3000) and timeout (default is 300)
cabal run kyc-server
# or
cabal run kyc-server -- --port XXXX --timeout XXXWhen the server is running, you can query it via curl (assuming that the port is set to 3000):
Prove request:
curl -X POST -H "Content-Type: application/json" --connect-timeout 300 -d @example-json/kyc-data.json localhost:3000/proveVerify request:
curl -X POST -H "Content-Type: application/json" --connect-timeout 300 -d @example-json/prover-output.json localhost:3000/verifyTo view the documentation, click here