I defer to Nick Szabo on that one. A computer scientist with a law degreee.

Reply to this note

Please Login to reply.

Discussion

Hello Mr Judge, which one of these two is highly illegal and which one is cool?

Getting image data from op_return:

bitcoin-cli getrawtransaction 4719e7252f4bdefd9f7bdf5058f17af28729b79c303b067eb01c107e57235754 1 | jq -r '.vout[0].scriptPubKey.asm | sub("^OP_RETURN "; "")' | xxd -p -r | tail -c +25 | base64 -d >image.jpg

Getting image data from witness:

bitcoin-cli getrawtransaction 584b6d204fcf6e2a3dd82a9adc55890447a09b534ab7d725a7353aecf547bcbf 1 | jq '.vin[0].txinwitness[1][122:40430] | gsub("4d0802";"")' | xxd -r -p > image.webp