Skip to content

Commit 8cfd525

Browse files
committed
unspendable blake2 hashlock
1 parent 28f8082 commit 8cfd525

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

tuxedo-core/src/verifier/htlc.rs

+6
Original file line numberDiff line numberDiff line change
@@ -70,6 +70,12 @@ impl Verifier for BlakeTwoHashLock {
7070
fn verify(&self, _: &[u8], _: u32, secret: &Self::Redeemer) -> bool {
7171
BlakeTwo256::hash(secret) == self.hash_lock
7272
}
73+
74+
fn new_unspendable() -> Option<Self> {
75+
Some(BlakeTwoHashLock {
76+
hash_lock: H256::zero(),
77+
})
78+
}
7379
}
7480

7581
/// Allows a UTXO to be spent, and therefore acknowledged by an intended recipient by revealing

0 commit comments

Comments
 (0)