Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Add default for Db | Yigit Sever | 2021-04-19 | 1 | -1/+7 |
| | |||||
* | New user and verbose JWT errors | Yigit Sever | 2021-04-18 | 1 | -0/+1 |
| | |||||
* | Implement block/tx bounds | Yigit Sever | 2021-04-17 | 1 | -4/+3 |
| | |||||
* | change mocked db. | alpaylan | 2021-04-16 | 1 | -1/+1 |
| | |||||
* | change last block reading method. | alpaylan | 2021-04-16 | 1 | -8/+6 |
| | |||||
* | Merge remote-tracking branch 'origin/main' | alpaylan | 2021-04-16 | 1 | -14/+59 |
|\ | | | | | | | | | # Conflicts: # src/schema.rs | ||||
| * | Load users from disk at start | Yigit Sever | 2021-04-16 | 1 | -14/+51 |
| | | |||||
| * | Add Doc for User | Yigit Sever | 2021-04-15 | 1 | -5/+6 |
| | | |||||
| * | Cleaned up user authentication | Yigit Sever | 2021-04-15 | 1 | -1/+1 |
| | | | | | | | | Removed TODOs, unrolled unwraps | ||||
| * | Listen to clippy | Yigit Sever | 2021-04-15 | 1 | -4/+11 |
| | | |||||
| * | Remove lorems and inpsumses | Yigit Sever | 2021-04-15 | 1 | -1/+1 |
| | | |||||
* | | change last block reading method. | alpaylan | 2021-04-16 | 1 | -6/+25 |
|/ | |||||
* | Merge remote-tracking branch 'origin/main' | alpaylan | 2021-04-15 | 1 | -2/+16 |
|\ | |||||
| * | Implement the bank account | Yigit Sever | 2021-04-14 | 1 | -2/+16 |
| | | |||||
* | | fix docs. | alpaylan | 2021-04-15 | 1 | -1/+1 |
|/ | |||||
* | Accepted block transactions play out now | Yigit Sever | 2021-04-14 | 1 | -6/+3 |
| | |||||
* | Users have Fingerprints | Yigit Sever | 2021-04-14 | 1 | -19/+17 |
| | |||||
* | [WIP] Initial implementation of user auth | Yigit Sever | 2021-04-14 | 1 | -2/+0 |
| | | | | | | There is a dance involved and everything Write down specs for RSA and AES, padding scheme, ugh. | ||||
* | [WIP] Rough authentication process done | Yigit Sever | 2021-04-14 | 1 | -0/+1 |
| | |||||
* | [WIP] Initial implementation of user auth | Yigit Sever | 2021-04-14 | 1 | -1/+8 |
| | | | | | | There is a dance involved and everything Write down specs for RSA and AES, padding scheme, ugh. | ||||
* | recover database from file. | alpaylan | 2021-04-14 | 1 | -2/+45 |
| | |||||
* | embed user passwds to the code structs. | alpaylan | 2021-04-14 | 1 | -8/+33 |
| | |||||
* | finished user testing. | alpaylan | 2021-04-14 | 1 | -3/+3 |
| | |||||
* | finished naked block testing. | alpaylan | 2021-04-14 | 1 | -1/+1 |
| | |||||
* | finished block testing | alpaylan | 2021-04-14 | 1 | -1/+1 |
| | |||||
* | start testing schema | alpaylan | 2021-04-14 | 1 | -1/+1 |
| | |||||
* | Add empty block test | Yigit Sever | 2021-04-14 | 1 | -2/+4 |
| | |||||
* | Fix docs again | Yigit Sever | 2021-04-13 | 1 | -2/+2 |
| | |||||
* | Fix docs | Yigit Sever | 2021-04-13 | 1 | -1/+1 |
| | |||||
* | Housekeeping | Yigit Sever | 2021-04-13 | 1 | -19/+49 |
| | | | | | | Moved tests out of routes.rs into their own file Learned how to use lib.rs, now we have cargo doc support as well | ||||
* | implement user authentication using jwt | alpaylan | 2021-04-12 | 1 | -6/+8 |
| | |||||
* | Implement proof-of-work | Yigit Sever | 2021-04-12 | 1 | -2/+10 |
| | | | | | | | | Using blacke2s: https://docs.rs/blake2/0.9.1/blake2/ Using this guy's hash checker https://gist.github.com/gkbrk/2e4835e3a17b3fb6e1e7 blacke2s with 5 bits 0 can mine a block between 20 seconds to 359 during my tests, hope it'll be fun | ||||
* | Implement User handling and authentication | Yigit Sever | 2021-04-12 | 1 | -16/+79 |
| | | | | | | | | | | | | | | | | | | | | | | | | New struct: User, corresponds to a student Blocks and users are persistent (written to a text file) PostgreSQL would've been overkill, we have 30 students AuthRequest is the representation for incoming register requests and User is the inner representation Students who are enrolled to the class are hardcoded, only they can register new accounts There are two new tests, one checks if a priviliged (=enrolled) user can create an account and the other checks if a unpriviliged one cannot There are quick verbose error messages that I'm not married to, might move on to something better honestly There's nothing stopping a malicious user to pre-register everyone with mock public keys and effectively lock everyone out, what's a good secret we can use? | ||||
* | Remove unused code and clean up comments | Yigit Sever | 2021-04-09 | 1 | -197/+18 |
| | |||||
* | Implement Block GET/PUT with new schema | Yigit Sever | 2021-04-07 | 1 | -20/+45 |
| | | | | | | | | | | | | | | - `Arc`+`Mutex` is replaced by `parking_lot::RwLock,` decoupled Read+Write and ability to upgrade read locks into write locks if needed - Schema has changed, `Db` is now a struct that implements `new()` to return a new instance of itself, pros/cons listed in code but tl;dr blockchain and pending transactions are separate now - `custom_filters` now supports extracting Block json and Transaction json in separate functions too - /block GET and PUT implemented, `Blocks` currently have one check (transactions appear in pending transaction) - debug is working after something, dunno how I fixed it | ||||
* | Initial commit | Yigit Sever | 2021-04-07 | 1 | -0/+223 |