aboutsummaryrefslogtreecommitdiffstats
path: root/Cargo.toml
Commit message (Collapse)AuthorAgeFilesLines
* chore: bump tokio and warpYigit Sever2022-06-071-2/+2
|
* bugfix: place guy files under network directoriesYigit Sever2022-04-261-1/+1
| | | | | | | | | | guy files were getting written in the correct directory but were getting updated on the parent directory (/users) this moves the "update guy file" logic to its own function so this sort of thing doesn't happen again writing blocks to disk got moved to its own function as well
* Implement gas feeYigit Sever2022-04-251-1/+1
|
* Add new endpoint /versionYigit Sever2022-04-251-1/+1
| | | | | | Use this endpoint to compare the live version to the version on vcs From here on, the version should be updated regularly as well
* Add Alperen Keles to authors listYigit Sever2022-04-231-1/+3
|
* Added myself to Cargo.tomlnecrashter2022-04-231-1/+1
|
* Implement the ability to read config from yamlnecrashter2022-04-231-0/+1
|
* [WIP] first part of lazy users overhaulYigit Sever2022-04-151-0/+1
|
* [WIP] more spring cleaningYigit Sever2022-04-111-1/+0
|
* Implements stakingYağız Şenal2021-09-081-0/+1
|
* Implement nicenetYigit Sever2021-04-251-0/+1
| | | | | | | - There are bot accounts that return what you sent them - Sending a transaction generates some coin out of thin air - No more one tx per person per block limit - Unused transactions do not disappear anymore
* Shed README.mdYigit Sever2021-04-191-0/+1
|
* Bump up version numberYigit Sever2021-04-161-1/+1
|
* Switch over to big boy loggingYigit Sever2021-04-151-1/+1
|
* Add template supportYigit Sever2021-04-151-0/+1
| | | | We are now serving static HTML alongside Gradecoin REST
* [WIP] Rough authentication process doneYigit Sever2021-04-141-0/+2
|
* [WIP] Initial implementation of user authYigit Sever2021-04-141-0/+3
| | | | | | There is a dance involved and everything Write down specs for RSA and AES, padding scheme, ugh.
* implement user authentication using jwtalpaylan2021-04-121-0/+2
|
* Implement proof-of-workYigit Sever2021-04-121-0/+2
| | | | | | | | 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 authenticationYigit Sever2021-04-121-2/+3
| | | | | | | | | | | | | | | | | | | | | | | | 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?
* Implement Block GET/PUT with new schemaYigit Sever2021-04-071-0/+1
| | | | | | | | | | | | | | - `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 commitYigit Sever2021-04-071-0/+19