_kami_gawa on Nostr: A Bitcoin signature doesn't sign "the transaction". It signs a *serialized subset* of ...
A Bitcoin signature doesn't sign "the transaction". It signs a *serialized subset* of the transaction — which subset depends on the SIGHASH flag appended to the DER signature.
The flag is 1 byte. That 1 byte changes everything. (2/6)
{
"id":"156a14452efdb850c606872415dffa1c2ee3efa5cebe2c5e0f7652637cdef706",
"pubkey":"956b551077f95a999b3a3a2da9653dc5f7bdb75dae6a1aadf0f2598b14be1e90",
"created_at":1773155558,
"kind":1,
"tags": [
[
"e",
"7517a045e13a42407a8323072ddb9b52a1546e8e63762e03629fc0f9e1f0c159",
"",
"root"
],
[
"e",
"7517a045e13a42407a8323072ddb9b52a1546e8e63762e03629fc0f9e1f0c159",
"",
"reply"
]
],
"content":"A Bitcoin signature doesn't sign \"the transaction\". It signs a *serialized subset* of the transaction — which subset depends on the SIGHASH flag appended to the DER signature.\n\nThe flag is 1 byte. That 1 byte changes everything. (2/6)",
"sig":"21142da11c26912f7d03b8e7af48db71c7ec0ae9827f96cacadf0276c18ce51bcd28402c4488cfd4e2ed025a974f2da1a912e637127ebef9709dae3b647875d2"
}