This was meant to be an implementation of https://github.com/lhartikk/naivechain (a lot of concepts and ideas are borrowed from there) in Rust but the

erenoku/naivechain-rs

submited by
Style Pass
2022-06-23 07:30:06

This was meant to be an implementation of https://github.com/lhartikk/naivechain (a lot of concepts and ideas are borrowed from there) in Rust but the code of this project turned out to be more complex. I didn't want to use websockets and decided to use TcpStreams. Because of bad design decisions I made this program opens a new tcp connection every time a message is sent which makes tracking peers not really easy. Because of this limitation an unneeded greeting mechanism between peers was needed.

Nevertheless this project was a good learning experience for me. This repo might also serve as a starting point for others who want to see a basic blockchain implementation Rust.

Leave a Comment