https://old.reddit.com/r/btc/comments/96fxvy/op_checkdatasig_is_copying_blockstream_and_is/
This recent post is frusterating because it is presenting a black/white choice between two different OP_CODES that perform two different functions entirely. What is up with this? To compare these as mutually exclusive is simply wrong.
OP_CHECKDATASIG
signature, message hash, pubkey
OP_CHECKDATASIG verifies the message hash (not pre-image) with the raw pubkey. OP_CHECKDATASIG would be used when the message should be hidden from the blockchain and be passed between a service and the user.
OP_DATASIGVERIFY
signature, message, pubkey hash
OP_DATASIGVERIFY verifies the raw message with the pubkey address. These functions would be used for entirely different purposes. OP_DATASIGVERIFY would be used when the message contents are not sensitive, but the pubkey is desired to be hidden.
Formatting edited
[link] [comments]
source https://www.reddit.com/r/btc/comments/96nu9e/op_codes_false_choices/
No comments:
Post a Comment