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.

20 lines
777 B

  1. echo ""
  2. echo "sending the signup, response:"
  3. curl -X POST http://127.0.0.1:3130/signup -d '{"email": "user1@e.com", "password": "user1"}'
  4. echo ""
  5. echo "sending the login, response:"
  6. curl -X POST http://127.0.0.1:3130/login -d '{"email": "user1@e.com", "password": "user1"}'
  7. echo ""
  8. echo "send pubK and m to blind sign"
  9. echo "json to send to the serverIDsigner:"
  10. echo '{"pubKstring": {"e": "65537", "n": "139093"}, "m": "hola"}'
  11. echo "serverIDsigner response:"
  12. BLINDSIGNED=$(curl -X POST http://127.0.0.1:3130/blindsign -d '{"pubKstring": {"e": "65537", "n": "139093"}, "m": "hola"}')
  13. echo "$BLINDSIGNED"
  14. echo ""
  15. echo "send blindsigned to the serverIDsigner to verify"
  16. curl -X POST http://127.0.0.1:3130/verifysign -d '{"m": "hola", "mSigned": "131898 40373 107552 34687"}'