summaryrefslogtreecommitdiffstats
path: root/Cargo.lock
diff options
context:
space:
mode:
authorYigit Sever2021-04-12 05:32:53 +0300
committerYigit Sever2021-04-12 05:32:53 +0300
commit44d21b676f90a2fc8b255eb9c1393e53f40c9daa (patch)
treeedfadfd279dc9fcfaa6c27f819c7f0e69d14599c /Cargo.lock
parent6c0345ecda5e46da88bc6ca513a28c648c29833c (diff)
downloadgradecoin-44d21b676f90a2fc8b255eb9c1393e53f40c9daa.tar.gz
gradecoin-44d21b676f90a2fc8b255eb9c1393e53f40c9daa.tar.bz2
gradecoin-44d21b676f90a2fc8b255eb9c1393e53f40c9daa.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.lock35
1 files changed, 35 insertions, 0 deletions
diff --git a/Cargo.lock b/Cargo.lock
index d4d5926..1116c65 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -45,6 +45,17 @@ source = "registry+https://github.com/rust-lang/crates.io-index"
45checksum = "cf1de2fe8c75bc145a2f577add951f8134889b4795d47466a54a5c846d691693" 45checksum = "cf1de2fe8c75bc145a2f577add951f8134889b4795d47466a54a5c846d691693"
46 46
47[[package]] 47[[package]]
48name = "blake2"
49version = "0.9.1"
50source = "registry+https://github.com/rust-lang/crates.io-index"
51checksum = "10a5720225ef5daecf08657f23791354e1685a8c91a4c60c7f3d3b2892f978f4"
52dependencies = [
53 "crypto-mac",
54 "digest",
55 "opaque-debug",
56]
57
58[[package]]
48name = "block-buffer" 59name = "block-buffer"
49version = "0.9.0" 60version = "0.9.0"
50source = "registry+https://github.com/rust-lang/crates.io-index" 61source = "registry+https://github.com/rust-lang/crates.io-index"
@@ -123,6 +134,16 @@ source = "registry+https://github.com/rust-lang/crates.io-index"
123checksum = "8aebca1129a03dc6dc2b127edd729435bbc4a37e1d5f4d7513165089ceb02634" 134checksum = "8aebca1129a03dc6dc2b127edd729435bbc4a37e1d5f4d7513165089ceb02634"
124 135
125[[package]] 136[[package]]
137name = "crypto-mac"
138version = "0.8.0"
139source = "registry+https://github.com/rust-lang/crates.io-index"
140checksum = "b584a330336237c1eecd3e94266efb216c56ed91225d634cb2991c5f3fd1aeab"
141dependencies = [
142 "generic-array",
143 "subtle",
144]
145
146[[package]]
126name = "digest" 147name = "digest"
127version = "0.9.0" 148version = "0.9.0"
128source = "registry+https://github.com/rust-lang/crates.io-index" 149source = "registry+https://github.com/rust-lang/crates.io-index"
@@ -280,7 +301,9 @@ dependencies = [
280name = "gradecoin" 301name = "gradecoin"
281version = "0.1.0" 302version = "0.1.0"
282dependencies = [ 303dependencies = [
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]]
379name = "hex-literal"
380version = "0.3.1"
381source = "registry+https://github.com/rust-lang/crates.io-index"
382checksum = "5af1f635ef1bc545d78392b136bfe1c9809e029023c84a3638a864a10b8819c8"
383
384[[package]]
356name = "http" 385name = "http"
357version = "0.2.3" 386version = "0.2.3"
358source = "registry+https://github.com/rust-lang/crates.io-index" 387source = "registry+https://github.com/rust-lang/crates.io-index"
@@ -980,6 +1009,12 @@ dependencies = [
980] 1009]
981 1010
982[[package]] 1011[[package]]
1012name = "subtle"
1013version = "2.4.0"
1014source = "registry+https://github.com/rust-lang/crates.io-index"
1015checksum = "1e81da0851ada1f3e9d4312c704aa4f8806f0f9d69faaf8df2f3464b4a9437c2"
1016
1017[[package]]
983name = "syn" 1018name = "syn"
984version = "1.0.68" 1019version = "1.0.68"
985source = "registry+https://github.com/rust-lang/crates.io-index" 1020source = "registry+https://github.com/rust-lang/crates.io-index"