The only reason we have T and don't just have a Box<dyn PersitenceBackend> internally is the custom error types. We could easily make standard error enum for persistence failures. This would remove the generic and therefore make using the wallet easier. Especially it would be easier to pass across FFI boundries.
The only reason we have
Tand don't just have aBox<dyn PersitenceBackend>internally is the custom error types. We could easily make standard error enum for persistence failures. This would remove the generic and therefore make using the wallet easier. Especially it would be easier to pass across FFI boundries.