• Welcome to forex.pm forex forum binary options trade. Please login or sign up.
 

Keypath spending: Verify destination address across address formats

Started by Bitcoin, Mar 25, 2022, 06:27 am

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

Bitcoin

Keypath spending: Verify destination address across address formats

In a Tapscript Keypath Transaction (there is an unrelated Scriptpath too) I can have outputs to all possible address?


(I.e. to P2PKH, P2SH, P2WPKH / P2WSH and P2TR)


I have a list of addresses in all possible formats (including bech32(m)). How can I ensure / verify that the scriptPubKey is mappable to an address in this list?


The signing client has access to every part of transaction's construction.


Source: Keypath spending: Verify destination address across address formats