mikedilger / nostr-next

Issues with nostr that would require breaking changes to fix
3 stars 0 forks source link

Signing is inefficient - Binary Events #2

Open mikedilger opened 1 month ago

mikedilger commented 1 month ago

In order to sign a nostr event, you need to line up some JSON fields. These aren't lined up in JSON events, so you need to allocate more memory and copy stuff. And if we had binary events we would have to translate things to sign them.

We could have immediate signing without allocation or copies if binary nostr events had all signable fields contiguous.