Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/jedahan/rustychain
blockchain client in rust
https://github.com/jedahan/rustychain
Last synced: 7 days ago
JSON representation
blockchain client in rust
- Host: GitHub
- URL: https://github.com/jedahan/rustychain
- Owner: jedahan
- Created: 2014-08-25T18:23:59.000Z (over 10 years ago)
- Default Branch: master
- Last Pushed: 2014-09-08T20:41:11.000Z (over 10 years ago)
- Last Synced: 2025-01-09T22:58:32.720Z (15 days ago)
- Language: Rust
- Size: 156 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: readme.md
Awesome Lists containing this project
README
## blockchain client in rust
inspired by [minimum viable blockchain](https://www.igvita.com/2014/05/05/minimum-viable-block-chain/)
### TODO
* hash the transactionHeader
* decrypt the transaction.signature using transactionHeader.from
* if the descrypted signature does not start with 0000 *FAIL: Bad proof of work*
* if the descrypted signature does not match the transactionHeader hash *FAIL: Transaction header has does not match signature*
* hash the payload
* if payload hash does not match transactionHeader hash *FAIL: Payload hash does not match transaction header hash*yay! everything passes! add to block!
### notes
* timespec may be replaced with [rust-chrono](https://github.com/lifthrasiir/rust-chrono)
* if not, maybe implement hash for timespec as a pull request
* implementing traits from different crates (monkey-patching) may be allowed sometime soon