2021-11-25
6754
#blockchain#rust
Mario Zupan
79492
Nov 25, 2021 ⋅ 24 min read

How to build a blockchain in Rust

Mario Zupan I'm a software developer originally from Graz but living in Vienna, Austria. I previously worked as a full-stack web developer before quitting my job to work as a freelancer and explore open source. Currently, I work at Netconomy.

Recent posts:

Understanding The Css Revert Layer Keyword, Part Of Css Cascade Layers

Understanding the CSS revert-layer keyword

In this article, we’ll explore CSS cascade layers — and, specifically, the revert-layer keyword — to help you refine your styling strategy.

Chimezie Innocent
Apr 24, 2024 ⋅ 6 min read
Exploring Nushell, A Rust Powered, Cross Platform Shell

Exploring Nushell, a Rust-powered, cross-platform shell

Nushell is a modern, performant, extensible shell built with Rust. Explore its pros, cons, and how to install and get started with it.

Oduah Chigozie
Apr 23, 2024 ⋅ 6 min read
Exploring Zed, A Newly Open Source Code Editor Written In Rust

Exploring Zed, an open source code editor written in Rust

The Zed code editor sets itself apart with its lightning-fast performance and cutting-edge collaborative features.

Nefe Emadamerho-Atori
Apr 22, 2024 ⋅ 7 min read
Implementing Infinite Scroll In Next Js With Server Actions

Implementing infinite scroll in Next.js with Server Actions

Infinite scrolling in Next.js no longer requires external libraries — Server Actions let us fetch initial data directly on the server.

Rahul Chhodde
Apr 19, 2024 ⋅ 10 min read
View all posts

9 Replies to "How to build a blockchain in Rust"

  1. Your article is too good. and thank you very much for sharing your blog with us. It looks very different and unique.

  2. There’s some weird bug in your binary hashes… If a hash starts with “0000”, its binary repr would start with 16 zeros, not only two. But I can’t pinpoint where it is.

  3. Hey I followed this tutorial and I have a bunch of generic reference errors, for example on the static variables in p2p.rs. like pub static KEYS: Lazy = Lazy::new….
    which I replaced with KEYS: Lazy = Lazy::new….
    it seems odd that throwing around a bunch of explicit turbo fish is fixing my errors (ultimately leading to more errors) esspecially since they arent present in this code. Could there be a change in the base packages?
    is it possible I am missing some crate or module, or using the wrong ones?
    I am new to Rust, is there something basic concept I could be missing, sorry I dont have more info I am just very confused

  4. does this still work? I got a bunch of missing generic errors, and the code was copied exactly, maybe I am using the wrong crates or modules

  5. Thx for your articles, I’m really enjoy reading it. Cause it’s the end of the workday I haven’t finished it. I’ll get back to it soon. What I really want to say is your articles are really interesting and it’s not the first one in which I’m interested in and where I can find answers to my questions. Thx for your time and detailed guides!

  6. I dont care if this code works till now but i’m learning so much, my second day of learning rust, and with an interest in blockchain, its a great start. if anyone can share the repo of the updates code or something, I’d really appreciate it

  7. Why nobody writes documents without test it? Your codes have too many missing things. For example you must write `pub response_sender: mpsc::UnboundedSender`, but your code is `pub response_sender: mpsc::UnboundedSender`. We’re just learning, how can we find the missing pieces?

Leave a Reply