zcash-android-wallet-sdk icon indicating copy to clipboard operation
zcash-android-wallet-sdk copied to clipboard

Verify Addresses without Synchronizer

Open ccjernigan opened this issue 3 years ago • 3 comments

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.

ccjernigan avatar Jan 02 '22 14:01 ccjernigan

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

pacu avatar Jan 03 '22 15:01 pacu

@HonzaR Any option to validate Zcash address, without Synchronizer?

rafaelekol avatar Nov 13 '23 08:11 rafaelekol

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.

HonzaR avatar Nov 13 '23 14:11 HonzaR