summaryrefslogtreecommitdiffstats
path: root/README.md
diff options
context:
space:
mode:
authorYigit Sever2021-04-13 04:05:11 +0300
committerYigit Sever2021-04-13 04:05:11 +0300
commit0cc703bc74539f123d57d2d392eaf6b99eca26e7 (patch)
treee7f811682f7c3a28fbbd1f1963977fda9cc04ba5 /README.md
parentaa169ad1b3c277859f01413a945ea2d6f1375615 (diff)
downloadgradecoin-0cc703bc74539f123d57d2d392eaf6b99eca26e7.tar.gz
gradecoin-0cc703bc74539f123d57d2d392eaf6b99eca26e7.tar.bz2
gradecoin-0cc703bc74539f123d57d2d392eaf6b99eca26e7.zip
Update todo and readme
Diffstat (limited to 'README.md')
-rw-r--r--README.md17
1 files changed, 7 insertions, 10 deletions
diff --git a/README.md b/README.md
index ff951b1..da95cce 100644
--- a/README.md
+++ b/README.md
@@ -1,25 +1,22 @@
1# Gradecoin 1# Gradecoin
2 2
3This will sit behind nginx reverse proxy so running at 127.0.0.1:8080 is no problem, or https. 3This will sit behind nginx reverse proxy so running at 127.0.0.1:8080 or not using https is not a problem.
4 4
5``` 5```
6$ cargo run 6# Test the project
7 7$ cargo test
8$ curl --location --request POST 'localhost:8080/transaction' --header 'Content-Type: application/json' --data-raw '{ 8
9 "source": "Myself Truly", 9# Read the documentation
10 "target": "Literally Anybody Else", 10$ cargo doc --open
11 "amount": 12,
12 "timestamp": "2021-04-07T00:17:00"
13}'
14``` 11```
15 12
16# how? 13# how?
17
18## authentication 14## authentication
19> Uses /register endpoint 15> Uses /register endpoint
20- Student creates their own 2048 bit RSA `keypair` 16- Student creates their own 2048 bit RSA `keypair`
21- Downloads Gradecoin's Public Key from Moodle 17- Downloads Gradecoin's Public Key from Moodle
22- Encrypts their JSON wrapped Public Key and Student ID using Gradecoin's Public Key 18- Encrypts their JSON wrapped Public Key and Student ID using Gradecoin's Public Key
19- Sends that to the /register endpoint with a POST request
23- Their public key is now in our database and can be used to sign their JWT's during requests 20- Their public key is now in our database and can be used to sign their JWT's during requests
24 21
25## transactions 22## transactions