Wouldn’t the client need to still know to send events for signing to relays so that the bunker could sign them?
Discussion
Isn’t that what your nostrignite does?
Client calls window.nostr.signEvent
Nostr ignite gets the signature via nip-46 and returns it to the client
It doesn’t do that yet. Just creates a new account and calls connect and returns the pubkey to the client.
That’ll be a fairly easy add though.
Don’t want to end up completely rewriting NDK here though. 🫠
Why not? Rewrite it in Rust.
😬 That is definitely not the way to ship in 2 weeks™
Also there's already: https://github.com/rust-nostr/nostr
Shouldn't that be the library to implement nip-46 in Rust?