aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorYigit Sever2021-04-09 21:06:37 +0300
committerYigit Sever2021-04-09 21:06:37 +0300
commit93950532fa1b4e2512275ef607b3e5de13db3f2b (patch)
tree9725a1f5904a76424ae0fb0cdabcab617ddaf148
parent33d1499f5fa69778063d7da27c0072dba78db4c3 (diff)
downloadgradecoin-93950532fa1b4e2512275ef607b3e5de13db3f2b.tar.gz
gradecoin-93950532fa1b4e2512275ef607b3e5de13db3f2b.tar.bz2
gradecoin-93950532fa1b4e2512275ef607b3e5de13db3f2b.zip
Add auth scheme JWT
-rw-r--r--README.md2
-rw-r--r--TODO.md8
2 files changed, 8 insertions, 2 deletions
diff --git a/README.md b/README.md
index 10e98cd..664336c 100644
--- a/README.md
+++ b/README.md
@@ -17,6 +17,8 @@ $ curl --location --request POST 'localhost:8080/transaction' --header 'Content-
17 17
18## authentication 18## authentication
19Students generate their own `keypairs` and authenticate with their METU Student IDs. 19Students generate their own `keypairs` and authenticate with their METU Student IDs.
20Some JWT scheme, coming up.
21
20Authenticated students propose transactions, between them and another node (=public keys) or between the grader (=bank) and themselves. 22Authenticated students propose transactions, between them and another node (=public keys) or between the grader (=bank) and themselves.
21 23
22## transactions 24## transactions
diff --git a/TODO.md b/TODO.md
index 3f8c3ea..7b58d96 100644
--- a/TODO.md
+++ b/TODO.md
@@ -7,8 +7,12 @@
7- [ ] check the nonce for incoming blocks 7- [ ] check the nonce for incoming blocks
8 8
9## Authentication 9## Authentication
10- [ ] pick a user authentication scheme 10- [X] pick a user authentication scheme = [JWT](https://tools.ietf.org/html/rfc7519) Seems perfect
11 - [ ] implement it 11- [ ] implement JWT
12 - https://blog.logrocket.com/jwt-authentication-in-rust/
13 - https://crates.io/crates/jsonwebtoken
14 - https://jwt.io/introduction/
15 - https://jwt.io/#debugger-io
12- [ ] users should be able to _sign_ their transactions 16- [ ] users should be able to _sign_ their transactions
13 17
14## Done & Brag 18## Done & Brag