Global Feed Post Login
Replying to Avatar myself

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>

Avatar
Blake 2y ago

https://github.com/0xtlt/nostr_rust/blob/main/src/events.rs#L127

https://github.com/scsibug/nostr-rs-relay/blob/master/src/event.rs#L359

Reply to this note

Please Login to reply.

Discussion

Avatar
myself 2y ago

What's your point? They are all signing the hash of the serialized event data (the whole object basically)

Thread collapsed