kalle on Nostr: The sighash flags are set in the signature itself. The user that signs an input sets ...
Published at
2023-07-13 09:25:41Event JSON
{
"id": "913e1c3a4f2e585ac6b6432c05c1e952e276d06f91a9da5ef4848402ecbb5348",
"pubkey": "4149bd2ca7c08ab6321dc1f54176c78acd295daa2030dca04e8010ad992e714d",
"created_at": 1689240341,
"kind": 1,
"tags": [
[
"e",
"2b2bb0e214964b13ffc3077abf440d529b8fd3ee6a6ee914123f58102eb4b9e9",
"",
"reply"
],
[
"p",
"50d94fc2d8580c682b071a542f8b1e31a200b0508bab95a33bef0855df281d63"
],
[
"r",
"https://rosenbaum.se/book/grokking-bitcoin-9.html#fig0924"
]
],
"content": "The sighash flags are set in the signature itself. The user that signs an input sets eg SIGHASH_ALL when signing. This means that any changes among the outputs will render the signature invalid.\n\nMore in my book Grokking Bitcoin:\n\nhttps://rosenbaum.se/book/grokking-bitcoin-9.html#fig0924",
"sig": "eab1a4e30577f2acd888ba9ab78f41da7edd6104a1dd4b030e836cbe4e42b70b46e0fe3dbe12d7be2c37ed9e265779de48e595e5484167bdc8c5d52d90767f79"
}