Sorry to bother you again, but is there a way with nostr-sdk to save the state of the client and/or signer/bunker in the localstorage of the web app that is running everything? Or is this outside of the scope of the crate and therefore needs to be achieved by the framework in use? I am trying something with Dioxus Web but apparently the Client and NostrConnectURI types doesn't support serialization.
I am still a beginner with Rust, so I might say stupid and incorrect things.
No, it not support that. Only received events are persistent if you are using indexeddb.
NostrConnectURI not support de/serialization with serde but you can use the `.to_string()` method to serialize it as str and `NostrConnectURI::parse` to parse it.
Thank you, that was very helpful for me.