myself on Nostr: The signature signs the whole object (minus the signature of course). Let me quote ...
The signature signs the whole object (minus the signature of course). Let me quote NIP-01:
> "sig": <64-bytes hex of the signature of the sha256 hash of the serialized event data, which is the same as the "id" field>
Published at
2023-03-10 13:48:46Event JSON
{
"id": "82b41bfc3e828d069988ff516d70345e11c031b87a0ad61ad56dfd9627f9de65",
"pubkey": "67ddca50751581c703c174790588c2cd8b00f80313d0f80a5b9e73d45e48ac20",
"created_at": 1678456126,
"kind": 1,
"tags": [
[
"e",
"49c73c74eb537436ffab8128e6b1a1243de442f87f06fbe8dc32eee6687c4887",
"wss://relay.snort.social",
"root"
],
[
"e",
"239d7dcb8fccdaa160d8f7555639fe03bad8f885c671161ff26b438dd406d3cd",
"wss://relay.snort.social",
"reply"
],
[
"p",
"67ddca50751581c703c174790588c2cd8b00f80313d0f80a5b9e73d45e48ac20"
],
[
"p",
"b2dd40097e4d04b1a56fb3b65fc1d1aaf2929ad30fd842c74d68b9908744495b"
]
],
"content": "The signature signs the whole object (minus the signature of course). Let me quote NIP-01:\n\n\u003e \"sig\": \u003c64-bytes hex of the signature of the sha256 hash of the serialized event data, which is the same as the \"id\" field\u003e",
"sig": "9ea84a5ad706f21ae268052cd765a0f60a32932c7c381eb89e0d8727d999730576b1c6d416ec794320f70140a2be34293378eb126f0195b793e54d8525f69882"
}