Jeff Garzik [ARCHIVE] on Nostr: 📅 Original date posted:2014-05-04 📝 Original message:On Sat, May 3, 2014 at ...
📅 Original date posted:2014-05-04
📝 Original message:On Sat, May 3, 2014 at 3:15 PM, Mark Friedenbach <mark at monetize.io> wrote:
> Is it more complex? The current implementation using template matching
> seems more complex than `if script.vch[0] == OP_RETURN &&
> script.vch.size() < 42`
Not much more complex.
The template matches a two-chunk script with OP_RETURN + one pushdata
(or just OP_RETURN with no push). The pushdata is further limited to
MAX_OP_RETURN_RELAY bytes.
--
Jeff Garzik
Bitcoin core developer and open source evangelist
BitPay, Inc.
https://bitpay.com/Published at
2023-06-07 15:20:54Event JSON
{
"id": "2e066d6e5e1c6825089b5f4d042f30acd95caa41512706d282bfca1dcccc99dc",
"pubkey": "b25e10e25d470d9b215521b50da0dfe7a209bec7fedeb53860c3e180ffdc8c11",
"created_at": 1686151254,
"kind": 1,
"tags": [
[
"e",
"16e41fd8d1a66d26890ffeb755f22e3a8eb1c8b9debfb4782bf4946f5773a9bc",
"",
"root"
],
[
"e",
"a269cb53f07ed309e9954073729229d9d4789abd77c34cf88de49b320c250abf",
"",
"reply"
],
[
"p",
"1c61d995949cbfaf14f767784e166bde865c7b8783d7aa3bf0a1d014b70c0069"
]
],
"content": "📅 Original date posted:2014-05-04\n📝 Original message:On Sat, May 3, 2014 at 3:15 PM, Mark Friedenbach \u003cmark at monetize.io\u003e wrote:\n\u003e Is it more complex? The current implementation using template matching\n\u003e seems more complex than `if script.vch[0] == OP_RETURN \u0026\u0026\n\u003e script.vch.size() \u003c 42`\n\nNot much more complex.\n\nThe template matches a two-chunk script with OP_RETURN + one pushdata\n(or just OP_RETURN with no push). The pushdata is further limited to\nMAX_OP_RETURN_RELAY bytes.\n\n-- \nJeff Garzik\nBitcoin core developer and open source evangelist\nBitPay, Inc. https://bitpay.com/",
"sig": "5b492d7525ca0745a98379becea2eebda623311f95d8029fdf428b41f8910bbd97a5188994c191ee9d1d5cf66d94569fcf1e885ba6ebf2f02faf1c12c70ee1ee"
}