Why Nostr? What is Njump?
2025-04-11 12:53:43

brugeman on Nostr: Store your nsec in a secure enclave! We've spent a big part of 2024 trying to make a ...

Store your nsec in a secure enclave!

We've spent a big part of 2024 trying to make a reliable non-custodial signer with nsec.app. It hasn't worked out perfectly - remote access to keys stored on a mobile device is still unreliable, especially on iOS.

That's why we got very interested in AWS Nitro Enclaves - h/t and MapleAI team for inspiration!

The idea is to have an open-source custodial signer and deploy it in an isolated environment that provides attestation for the deployed code. Anyone would be able to reproduce the code build and verify that the signer is running the correct code in a safe environment.

So here it is: https://github.com/nostrband/noauth-enclaved

Each instance of a signer deployed in an enclave announces itself on Nostr. We added some Nostr to attestation provided by AWS - the report is linked to pubkeys of a person building the code image, and a person running it. This way you can choose a signer based on your own preferences.

It's already integrated into nsec.app, go to Settings => Secure enclave and try to upload your keys to the server. The signer API is described in README.



DO NOT deploy your real keys just yet - it's running in a production environment, but the code hasn't been well audited yet. First we need some community members to review the code and reproduce the code image.

The signer can also be used to generate throwaway keys for automated testing of nip46 implementations, check out "generate_test_key" method.

Looking forward to your feedback!

(Signed by my nsec from the enclave)
Author Public Key
npub1xdtducdnjerex88gkg2qk2atsdlqsyxqaag4h05jmcpyspqt30wscmntxy