NIP-52 says for time-based kind events:

{

"id": <32-bytes lowercase hex-encoded SHA-256 of the the serialized event data>,

....

}

So does this mean, I get the serialized event with everything EXCEPT the "Id" field and then put that in id?

#asknostr

Reply to this note

Please Login to reply.

Discussion

Wait, i think it has to be serialized as a json array without the keys, and then that has to be hashed? Idk i'm confused

It's specifically the values [0,pubkey,created_at,kind,tags,content] -- NIP-01 has the exact details.

NVM, this isn't important for me to know immediately, the library I'm using handles it for me correctly according to nak.nostr.com .