rust-bitcoin-unsafe-fast/bitcoin/examples
Andrew Poelstra f2a5596899
examples: clean up taproot PSBT example locktime handling
This still has the line

    let lock_time = absolute::LockTime::from_height(psbt.unsigned_tx.lock_time.to_consensus_u32() + lock_time_delta).unwrap();

I'm unsure whether this "adding height to a locktime" concept is a
meaningful thing or just the sort of thing that shows up in example
code. Maybe we should have first-class support for it.

Note that the line, as written, depends on the fact that the original
locktime was a small blockheight. A proper function for this would
handle the exceptional case gracefully.
2022-12-13 14:52:43 +00:00
..
bip32.rs Run cargo fmt 2022-11-18 13:11:07 +11:00
ecdsa-psbt.rs remove PackedLockTime type 2022-12-11 19:08:14 +00:00
handshake.rs Add a workspace to the top level directory. 2022-09-13 08:44:57 +10:00
taproot-psbt.rs examples: clean up taproot PSBT example locktime handling 2022-12-13 14:52:43 +00:00