Hey Salvatoshi, looking through the code and BIP right now. I obviously come at this from thinking about handling amounts in Scripts.
Does this opcode make sense to use in “fan-in” and “fan-out” patterns? Its unclear to me if X
in the examples could also be A''
OP_CCV?
Fan-in
Does it make sense to aggregate multiple OP_CCV funding outputs into a single OP_CCV output?
Fan-out
Does it make sense to take a single OP_CCV funding output and split it into multiple OP_CCV outputs? Its unclear to me from the examples if X
can be an OP_CCV as well
Single input Single Output
In the case where you have a transaction that takes a single OP_CCV input and a single OP_CCV output, how is fee handling expected to work? Is the idea that you just add an anchor output and the CPFP the parent?
Or can you use the “deduct” feature to slice off a portion of the OP_CCV amount to use for a fee?