Re: [bitcoin-dev] Regarding BIP322 edge cases

2022-08-10 Thread vjudeu via bitcoin-dev
> I'm not sure what is to be gained from adding an opcode Backward compatibility. If we don't have OP_CHECKDATASIG, then it has to be somehow introduced to make it compatible with "Bitcoin Message". And we have opcodes like OP_RESERVED, that can be wrapped in OP_IF, then it is "conditionally va

Re: [bitcoin-dev] Regarding BIP322 edge cases

2022-08-10 Thread Ali Sherief via bitcoin-dev
> Backward compatibility. If we don't have OP_CHECKDATASIG, then it has to be > somehow introduced to make it compatible with "Bitcoin Message". I suppose in the case of legacy P2PKH signing, a hypothetical OP_CHECKDATASIG can take off the stack and perform an ECDSA public key recovery, follo

Re: [bitcoin-dev] Regarding BIP322 edge cases

2022-08-10 Thread vjudeu via bitcoin-dev
> I suppose in the case of legacy P2PKH signing, a hypothetical OP_CHECKDATASIG > can take off the stack and perform an ECDSA public > key recovery You can always perform key recovery for legacy ECDSA: " OP_SWAP OP_CHECKSIG" is always spendable, for any valid DER-encoded pair. Here, if "

Re: [bitcoin-dev] Regarding BIP322 edge cases

2022-08-10 Thread Ali Sherief via bitcoin-dev
Wait a minute. I did some lookup on OP_CHECKDATASIG to see if it's in some btc BIP draft somewhere, and it is actually an opcode in Bitcoin Cash since some years ago - https://mengerian.medium.com/the-story-of-op-checkdatasig-c2b1b38e801a I think we can safely assume that Kalle and the other ma

Re: [bitcoin-dev] Regarding BIP322 edge cases

2022-08-10 Thread Ryan Grant via bitcoin-dev
>> TODO: A way for the initial signer to delegate to another >> scriptPubKey; needed for better privacy and CoinJoin/Lightning >> compatibility I need more documentation to understand this motivation. On Tue, Aug 9, 2022 at 8:46 PM Ali Sherief via bitcoin-dev wrote: > In the case of the last TOD