diff --git a/src/lib.rs b/src/lib.rs index c152ecd..53d6b29 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -66,4 +66,15 @@ impl Miner { BraidPool } } - } \ No newline at end of file + } + +pub mod datum { + pub struct Datum; + + impl Datum { + pub fn run() { + println!("Running the Datum miner..."); + } + + } +} \ No newline at end of file diff --git a/src/mining/datum.rs b/src/mining/datum.rs index e69de29..7a74172 100644 --- a/src/mining/datum.rs +++ b/src/mining/datum.rs @@ -0,0 +1,12 @@ +use bitcoin::{ + BlockHash, + Transaction, +}; + +use datum::Transaction; + +pub type Datum = Transaction; + +pub (crate) fn hash(datum: &Datum) -> BlockHash { + datum.hash() +}