delvingbitcoin

BIP352: PSBT support

BIP352: PSBT support

Original Postby andrewtoth

Posted on: June 14, 2024 18:10 UTC

In the discussion about enhancing cryptographic protocols, a comparison between two approaches for handling inputs in cryptographic proofs is presented.

One method entails assigning a unique share and proof to each input, which aligns with traditional implementations. Conversely, an alternative strategy proposes the amalgamation of all inputs associated with a signer's private key into a single share and proof. This consolidation aims to streamline the process and potentially enhance security by reducing the complexity and number of proofs required.

A suggestion is made to further refine this approach by creating a unified proof for each scan key alongside its corresponding set of inputs. This proposal includes the introduction of a global field designed to contain key data, which would consist of a 33-byte scan followed by a set of indexes. Such a structure would facilitate more efficient management and verification of cryptographic proofs.

Moreover, there's an emphasis on the necessity for constructors to verify the absence of ANYONECANPAY sighashes in any inputs prior to adding a silent payment to the protocol. This precaution is mirrored in the responsibilities assigned to updaters, who are also required to conduct similar checks. The rationale behind these checks is to ensure the integrity and security of transactions, especially when modifications to the PSBT_GLOBAL_TX_MODIFIABLE field are not deemed necessary.

To address specific challenges related to transaction types and modifications, the introduction of a "Has Silent Payments" flag within the PSBT_GLOBAL_TX_MODIFIABLE field is proposed. This addition draws parallel to the existing "Has Sighash Single" flag, underscoring the importance of identifying and accommodating various transaction modifiers within the cryptographic framework. This adaptation reflects a proactive approach to maintaining flexibility and security within the evolving landscape of cryptocurrency transactions and cryptographic protocols.