Aymeric Vitte [ARCHIVE] on Nostr: š
Original date posted:2019-05-25 š Original message:I realized recently that ...
š
Original date posted:2019-05-25
š Original message:I realized recently that my segwit implementation was not correct,
basically some time ago, wrongly reading the specs (and misleaded by
what follows), I thought that scriptsig would go into witness data as it
was, but that's not the case, op_pushdata is replaced by varlen
Now reading correctly the specs, they seem to be not totally correct,
then the first question is: why OP_0 is 00 in witness data and not 0100?
Does this apply to other op_codes? This does not look logical at all
The second question is: why for non segwit inputs there is a 00 length
in segwit data, what is the rational for that? It should just be nothing
since you don't need this to reconciliate things
Published at
2023-06-07 18:18:22Event JSON
{
"id": "dad9557324afb479d729e11a75075232a4cbdf6774d94896c1d766908944cc6d",
"pubkey": "a2711d6616d348a3542bb2a791a9e51fcbc7b7d1d20652e5abe16d3e179321df",
"created_at": 1686161902,
"kind": 1,
"tags": [
[
"e",
"57f670b71f9403a1e4f551e7e92fdc9f1e9951b7c8bc93d735ebac1f180808eb",
"",
"reply"
],
[
"p",
"a23dbf6c6cc83e14cc3df4e56cc71845f611908084cfe620e83e40c06ccdd3d0"
]
],
"content": "š
Original date posted:2019-05-25\nš Original message:I realized recently that my segwit implementation was not correct,\nbasically some time ago, wrongly reading the specs (and misleaded by\nwhat follows), I thought that scriptsig would go into witness data as it\nwas, but that's not the case, op_pushdata is replaced by varlen\n\nNow reading correctly the specs, they seem to be not totally correct,\nthen the first question is: why OP_0 is 00 in witness data and not 0100?\nDoes this apply to other op_codes? This does not look logical at all\n\nThe second question is: why for non segwit inputs there is a 00 length\nin segwit data, what is the rational for that? It should just be nothing\nsince you don't need this to reconciliate things",
"sig": "f873b39215e85772fb88a57f13fc222f9e4c850b04bb20a1fa7cdcf3082b94b5d01943d28ddf26e1be7999027670b577acd91764b932418fe62820361fe1043f"
}