diff --git a/src/data.rs b/src/data.rs new file mode 100644 index 0000000..7bc3e4c --- /dev/null +++ b/src/data.rs @@ -0,0 +1,3 @@ +mod small; + +pub use small::SMALL; diff --git a/src/data/small.rs b/src/data/small.rs new file mode 100644 index 0000000..95cbab7 --- /dev/null +++ b/src/data/small.rs @@ -0,0 +1,48 @@ +use crate::Task; + +pub const SMALL: &[Task] = &[ + Task { + data: b"eb17a235c386039c41c65bf5", + cost: 5_000, + }, + Task { + data: b"df33fd171cd4d311775ebe76", + cost: 1_000, + }, + Task { + data: b"cf36fbab1baf290999d01083", + cost: 3_000, + }, + Task { + data: b"6310911f1151900d02b5ce42", + cost: 8_000_000, + }, + Task { + data: b"aefe69a5e5bf22265a14466e", + cost: 7_000, + }, + Task { + data: b"ed7a38491b5162b875361990", + cost: 280_000, + }, + Task { + data: b"b935794a8003079c952c3b49", + cost: 5_000_000, + }, + Task { + data: b"7e2ba11508bd056b3941e4c1", + cost: 2_000_000, + }, + Task { + data: b"6e1ca1926f4188f1f84eca25", + cost: 15_000, + }, + Task { + data: b"1ef7ae40e42ae05e8ce9c750", + cost: 1_000_000, + }, + Task { + data: b"ea6c5b4b03da5bf66e8262b5", + cost: 42_000, + }, +]; diff --git a/src/lib.rs b/src/lib.rs index 91334d4..e6e9d82 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -1,3 +1,5 @@ +mod data; + use pbkdf2::pbkdf2_hmac; use sha2::Sha256;