Skip to content

Commit

Permalink
Initial Datum
Browse files Browse the repository at this point in the history
  • Loading branch information
22388o committed Nov 6, 2024
1 parent cb669d7 commit c29fe6b
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 1 deletion.
13 changes: 12 additions & 1 deletion src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -66,4 +66,15 @@ impl Miner {
BraidPool
}
}
}
}

pub mod datum {
pub struct Datum;

impl Datum {
pub fn run() {
println!("Running the Datum miner...");
}

}
}
12 changes: 12 additions & 0 deletions src/mining/datum.rs
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
use bitcoin::{
BlockHash,
Transaction,
};

use datum::Transaction;

pub type Datum = Transaction;

pub (crate) fn hash(datum: &Datum) -> BlockHash {
datum.hash()
}

0 comments on commit c29fe6b

Please sign in to comment.