From f00437da19b9c57b03392b049429b18755d61da1 Mon Sep 17 00:00:00 2001 From: Yigit Sever Date: Tue, 13 Apr 2021 20:42:41 +0300 Subject: Update TODO --- TODO.md | 13 +++++++++---- 1 file changed, 9 insertions(+), 4 deletions(-) diff --git a/TODO.md b/TODO.md index a4efbcc..6323bab 100644 --- a/TODO.md +++ b/TODO.md @@ -1,14 +1,16 @@ # TODO +## Simulation +- [ ] Blocks should "play out" the transactions and execute transactions +- [ ] "Coinbase" ("by" of the first transaction of the block) should get rewarded for their efforts +- [ ] Transactions should be rejected if the user cannot afford to send the amount + ## Authentication - [ ] /register is currently accepting non-encrypted (regular JSON) payloads - [ ] /register should check for public key pem format and assign signatures ## Authorization -- [x] POST requests to /block should be authenticated as well (2021-04-13 04:50, they now are but until we make error messages **Verbose** there's not much point in testing because I honestly cannot trace the code) - -## Verbosity -- [ ] Verbose error messages (use error.rs from [logrocket](https://blog.logrocket.com/create-an-async-crud-web-service-in-rust-with-warp/) ❓) +- [.] POST requests to /block should be authenticated as well (2021-04-13 04:50, they now are but until we make error messages **Verbose** there's not much point in testing because I honestly cannot trace the code) ## Tests - [ ] Schema Tests @@ -25,7 +27,10 @@ - [x] Switch to RwLock (parking_lot) (done at 2021-04-07 03:43, two possible schemes to represent inner Db (ledger) in code) - [x] We need our own representation of students and their grades, "there is no blockchain" (done at 2021-04-12 00:05) - [x] pick a block proposal scheme (= pick hash function) [list of hash functions](https://en.bitcoinwiki.org/wiki/List_of_hash_functions) (done at 2021-04-12 05:30) +---- - [x] check the nonce for incoming blocks (done at 2021-04-12 05:30) - [X] pick a user authentication scheme = [JWT](https://tools.ietf.org/html/rfc7519) Seems perfect - [X] implement JWT - [X] users should be able to _sign_ their transactions +---- +- [x] Verbose error messages (use error.rs from [logrocket](https://blog.logrocket.com/create-an-async-crud-web-service-in-rust-with-warp/) ❓) (done at 2021-04-13 20:39, not happy with the result) -- cgit v1.2.3-70-g09d2