diff options
author | Yigit Sever | 2021-04-12 05:32:53 +0300 |
---|---|---|
committer | Yigit Sever | 2021-04-12 05:32:53 +0300 |
commit | e0fb91039f34204b2a5c588a95cb3f1789ad2fa7 (patch) | |
tree | 9c38670c348f04c57185639c541a1a93b8cfde2a /Cargo.lock | |
parent | 62aa261e1fd531afd1e5fa7244471d051a78db38 (diff) | |
download | gradecoin-e0fb91039f34204b2a5c588a95cb3f1789ad2fa7.tar.gz gradecoin-e0fb91039f34204b2a5c588a95cb3f1789ad2fa7.tar.bz2 gradecoin-e0fb91039f34204b2a5c588a95cb3f1789ad2fa7.zip |
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
Diffstat (limited to 'Cargo.lock')
-rw-r--r-- | Cargo.lock | 35 |
1 files changed, 35 insertions, 0 deletions
@@ -45,6 +45,17 @@ source = "registry+https://github.com/rust-lang/crates.io-index" | |||
45 | checksum = "cf1de2fe8c75bc145a2f577add951f8134889b4795d47466a54a5c846d691693" | 45 | checksum = "cf1de2fe8c75bc145a2f577add951f8134889b4795d47466a54a5c846d691693" |
46 | 46 | ||
47 | [[package]] | 47 | [[package]] |
48 | name = "blake2" | ||
49 | version = "0.9.1" | ||
50 | source = "registry+https://github.com/rust-lang/crates.io-index" | ||
51 | checksum = "10a5720225ef5daecf08657f23791354e1685a8c91a4c60c7f3d3b2892f978f4" | ||
52 | dependencies = [ | ||
53 | "crypto-mac", | ||
54 | "digest", | ||
55 | "opaque-debug", | ||
56 | ] | ||
57 | |||
58 | [[package]] | ||
48 | name = "block-buffer" | 59 | name = "block-buffer" |
49 | version = "0.9.0" | 60 | version = "0.9.0" |
50 | source = "registry+https://github.com/rust-lang/crates.io-index" | 61 | source = "registry+https://github.com/rust-lang/crates.io-index" |
@@ -123,6 +134,16 @@ source = "registry+https://github.com/rust-lang/crates.io-index" | |||
123 | checksum = "8aebca1129a03dc6dc2b127edd729435bbc4a37e1d5f4d7513165089ceb02634" | 134 | checksum = "8aebca1129a03dc6dc2b127edd729435bbc4a37e1d5f4d7513165089ceb02634" |
124 | 135 | ||
125 | [[package]] | 136 | [[package]] |
137 | name = "crypto-mac" | ||
138 | version = "0.8.0" | ||
139 | source = "registry+https://github.com/rust-lang/crates.io-index" | ||
140 | checksum = "b584a330336237c1eecd3e94266efb216c56ed91225d634cb2991c5f3fd1aeab" | ||
141 | dependencies = [ | ||
142 | "generic-array", | ||
143 | "subtle", | ||
144 | ] | ||
145 | |||
146 | [[package]] | ||
126 | name = "digest" | 147 | name = "digest" |
127 | version = "0.9.0" | 148 | version = "0.9.0" |
128 | source = "registry+https://github.com/rust-lang/crates.io-index" | 149 | source = "registry+https://github.com/rust-lang/crates.io-index" |
@@ -280,7 +301,9 @@ dependencies = [ | |||
280 | name = "gradecoin" | 301 | name = "gradecoin" |
281 | version = "0.1.0" | 302 | version = "0.1.0" |
282 | dependencies = [ | 303 | dependencies = [ |
304 | "blake2", | ||
283 | "chrono", | 305 | "chrono", |
306 | "hex-literal", | ||
284 | "lazy_static", | 307 | "lazy_static", |
285 | "log", | 308 | "log", |
286 | "parking_lot", | 309 | "parking_lot", |
@@ -353,6 +376,12 @@ dependencies = [ | |||
353 | ] | 376 | ] |
354 | 377 | ||
355 | [[package]] | 378 | [[package]] |
379 | name = "hex-literal" | ||
380 | version = "0.3.1" | ||
381 | source = "registry+https://github.com/rust-lang/crates.io-index" | ||
382 | checksum = "5af1f635ef1bc545d78392b136bfe1c9809e029023c84a3638a864a10b8819c8" | ||
383 | |||
384 | [[package]] | ||
356 | name = "http" | 385 | name = "http" |
357 | version = "0.2.3" | 386 | version = "0.2.3" |
358 | source = "registry+https://github.com/rust-lang/crates.io-index" | 387 | source = "registry+https://github.com/rust-lang/crates.io-index" |
@@ -980,6 +1009,12 @@ dependencies = [ | |||
980 | ] | 1009 | ] |
981 | 1010 | ||
982 | [[package]] | 1011 | [[package]] |
1012 | name = "subtle" | ||
1013 | version = "2.4.0" | ||
1014 | source = "registry+https://github.com/rust-lang/crates.io-index" | ||
1015 | checksum = "1e81da0851ada1f3e9d4312c704aa4f8806f0f9d69faaf8df2f3464b4a9437c2" | ||
1016 | |||
1017 | [[package]] | ||
983 | name = "syn" | 1018 | name = "syn" |
984 | version = "1.0.68" | 1019 | version = "1.0.68" |
985 | source = "registry+https://github.com/rust-lang/crates.io-index" | 1020 | source = "registry+https://github.com/rust-lang/crates.io-index" |