Why Nostr? What is Njump?
2024-02-07 15:30:58
in reply to

vnprc on Nostr: One thing that is unclear to me is how do you commit to a TXID but then later spend ...

One thing that is unclear to me is how do you commit to a TXID but then later spend those funds in a different way. This is a missing puzzle piece in my mental model.

Do you use a keypath spend? What about for non-taproot addresses? Do you use a different script branch? If so, how does someone really know their funds are safu on chain without monitoring the CTV UTXO to ensure it hasn't been spent out from under them using this other script path?

I think a simple script example would go a long way towards building understanding, definitely for me, hopefully for others as well.
Author Public Key
npub16vzjeglr653mrmyqvu0trwaq29az753wr9th3hyrm5p63kz2zu8qzumhgd