bsv_wallet_cli/gift/mod.rs
1//! TimeLockedGift — on-chain time-locked BSV gift covenant.
2//!
3//! Pay someone such that they fully own the key (can back it up / email it to
4//! themselves) but the network refuses to confirm any spend until `lockUntil`.
5//! OP_CHECKLOCKTIMEVERIFY is a NOP on BSV post-Genesis, so the covenant instead
6//! reads the spending tx's own nLockTime/nSequence from the sighash preimage and
7//! requires `nLockTime >= lockUntil && sequence < 0xffffffff`; consensus then
8//! forbids mining until median-time-past passes the lock.
9//!
10//! The covenant locking script is the sCrypt-compiled `TimeLockedGift` reduced to
11//! `PREFIX · push(recipient) · push(lockUntil) · push(amount) · SUFFIX`, proven
12//! byte-identical to the compiler over 110 vectors (see `covenant::tests`).
13
14pub mod claim;
15pub mod covenant;
16mod template_data;