Open ccjernigan opened 2 years ago
I Like this, we should carve out a consistent API that works and reads similarly on both platforms. And that maybe plays well with the FFI stuff
@HonzaR Any option to validate Zcash address, without Synchronizer?
Hi @rafaelekol, There is no progress in this matter yet, but in the current reworking of our wallet, we'll probably need to touch this.
What is your feature request? Consider a strongly typed API for wallet addresses, instead of strings.
In addition, consider a factory method that takes in a string, validates it as an address, and emits a valid strongly typed address object (or throws an exception if the address is invalid).
How would this feature help you? When developing the wallet UI, strings passed around are a weak type and validation of these strings is difficult to do.
Current validation APIs require access to the Synchronizer instance, which has become a bit of a God object and doesn't need to be passed around to most views when using Compose.