Even if you Object.freeze the verified event, nothing in JS will stop you from destructuring it into a new object like that. verify can be a function on the prototype but nothing can guarantee *its* immutability.

Reply to this note

Please Login to reply.

Discussion

The implementation must follow the nip46 signer protocol, right? https://nostr-nips.com/nip-46#signer-protocol

The event signature is described in NIP-01. 46 is a spec for external signing providers on top of that format. Code interfaces into verification are completely up to implementors.