From e0fb91039f34204b2a5c588a95cb3f1789ad2fa7 Mon Sep 17 00:00:00 2001 From: Yigit Sever Date: Mon, 12 Apr 2021 05:32:53 +0300 Subject: Implement proof-of-work 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 --- Cargo.toml | 2 ++ 1 file changed, 2 insertions(+) (limited to 'Cargo.toml') diff --git a/Cargo.toml b/Cargo.toml index 2ae2b25..7e12c2d 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -16,6 +16,8 @@ pretty_env_logger = "0.3.1" parking_lot = "0.10.0" serde_json = "1.0.59" lazy_static = "1.4.0" +blake2 = "0.9.1" +hex-literal = "0.3.1" [dev-dependencies] serde_test = "1.0.117" -- cgit v1.2.3-70-g09d2