This is a demo svelte app that shows how E2EE (NIP-104) DMs work on Nostr.
THIS IS DEMO CODE ONLY. Any real implementation will need to be done with more care for security and how secure material is stored. The purpose of this demo is to help you understand the flow of events between users and how to calculate the various keys needed.