STORY
NIP-46 Remote Signer Successful Test!
AUTHOR
Joined 2022.10.06
DATE
VOTES
sats
COMMENTS

NIP-46 Remote Signer Successful Test!

We did it - a successful remote signing from a push notification!

The notification was tapped, and instantly we signed a request to get my pubkey, and sent the signed request back to the requesting app over nostr using NIP-46.

Kwinten's NIP-46 push notification server is now fully operational and has a simple API for a device to pass its expo token + the pubkey of the app it's connecting to in order to start receiving push notifications for signing requests.

I worked on the remote signer (expo app) this week. You can now:
- Connect your private key (currently hard-coded)
- Add a new app connection, setup push notifications and connect to the app using NIP-46 "connect" request.
- decrypt and auto-sign events received from push notifications (currently requires the app to be open).

Your private key and app connections are saved in expo secure storage, and I'll be making future improvements to minimize the usage of the private key throughout the app to ensure it stays secure.

What's next:
- Support signing all types, and have a page showing a preview to the user of what they are signing
- Deploy the app to make sure it works on Android (install from APK) / iOS testflight
- Work on the third part of our solution: A Nostr connect button that you can easily inject into any site, that enables remote signing over the standard NIP-07 interface (therefore requiring no extra effort for developers - just like what Bitcoin Connect does with WebLN!)

I would like to say thanks very much to Tiero for his work on Nostr Connect in the last hackathon! his package and example app came very much in handy this week.

Here's some screenshots of the app - no UI design yet, but never fear: Jakub is here to help us!

Until next time,
Roland & Kwinten