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