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 --- src/lib.rs | 9 +++++++++ 1 file changed, 9 insertions(+) create mode 100644 src/lib.rs (limited to 'src/lib.rs') diff --git a/src/lib.rs b/src/lib.rs new file mode 100644 index 0000000..aed4591 --- /dev/null +++ b/src/lib.rs @@ -0,0 +1,9 @@ +pub mod schema; + +pub use schema::create_database; +pub use schema::AuthRequest; +pub use schema::Block; +pub use schema::Db; +pub use schema::MetuId; +pub use schema::Transaction; +pub use schema::User; -- cgit v1.2.3-70-g09d2