Can this tx be formed?



Summary:

In this context, Alice and Bob have both signed and broadcasted a transaction with different inputs using SIGHASH_SINGLE to their respective outputs. However, Carol is now tasked with completing the transaction in a way that it can be validly published on the chain. To do so, she must create a single transaction that combines both inputs (Ai and Bi) along with an additional input (Ci) and a fee output (F), such that the sum of all inputs equals the sum of all outputs (Ai + Bi + Ci + F = Ao + Bo + Co). It is important to note that SIGHASH_ANYONECANPAY has been used for both inputs, which allows Carol to add her own input without invalidating the signatures from Alice and Bob. This means that Carol can complete the transaction without requiring any additional signatures, as long as she follows the rules for creating a valid transaction. Overall, the task at hand for Carol is to construct a single transaction that includes all necessary inputs and outputs while adhering to the specific requirements of the SIGHASH_SINGLE and SIGHASH_ANYONECANPAY flags used by Alice and Bob.


Updated on: 2023-06-06T10:43:58.239538+00:00