diff options
author | Yigit Sever | 2021-04-10 14:16:41 +0300 |
---|---|---|
committer | Yigit Sever | 2021-04-10 14:16:41 +0300 |
commit | ed53fbc9097370feeda1c5507878933643a9bcc5 (patch) | |
tree | 9fbb1ccf6baa2cec3a489c5f29bad12b97853420 /README.md | |
parent | 93950532fa1b4e2512275ef607b3e5de13db3f2b (diff) | |
download | gradecoin-ed53fbc9097370feeda1c5507878933643a9bcc5.tar.gz gradecoin-ed53fbc9097370feeda1c5507878933643a9bcc5.tar.bz2 gradecoin-ed53fbc9097370feeda1c5507878933643a9bcc5.zip |
Trying to auth
Diffstat (limited to 'README.md')
-rw-r--r-- | README.md | 8 |
1 files changed, 4 insertions, 4 deletions
@@ -16,12 +16,12 @@ $ curl --location --request POST 'localhost:8080/transaction' --header 'Content- | |||
16 | # how? | 16 | # how? |
17 | 17 | ||
18 | ## authentication | 18 | ## authentication |
19 | Students generate their own `keypairs` and authenticate with their METU Student IDs. | 19 | - Student generates a 2048 bit RSA Public Key (PK) / Private Key (PR) pair (available in python, c++, rust, gpg) |
20 | Some JWT scheme, coming up. | 20 | - They then encrypt their PKs and Student IDs with Gradecoin's PK (will be published) |
21 | 21 | - They use their PR as the signing key for JWTs | |
22 | Authenticated students propose transactions, between them and another node (=public keys) or between the grader (=bank) and themselves. | ||
23 | 22 | ||
24 | ## transactions | 23 | ## transactions |
24 | Students propose transactions, between them and another node (=public keys) or between the grader (=bank) and themselves. | ||
25 | Transactions are `signed` using the proposers private key. | 25 | Transactions are `signed` using the proposers private key. |
26 | (This whole public/private key + signing process will require some crypto dependency, **todo**) | 26 | (This whole public/private key + signing process will require some crypto dependency, **todo**) |
27 | 27 | ||