hello , i am new to zcash , i didn't found a method to validate a t-address , can anyone help ?
There are three levels at which you might want to validate an address:
For 1, you need a library that implements Base58Check. For debugging I sometimes use the Python base58 module, which has a base58.b58decode_check function. There are equivalents available in most commonly-used programming languages.
For 2, read the "Transparent Payment Addresses" section of the Zcash protocol spec. Note that we may support additional address types in future (in particular we almost certainly will add support for BIP32-style addresses), so if you validate at this level and don't update that code when new types are added, you'll end up excluding them.
For 3, there's really no way to tell.
thx daira ~
For 2, read the "Transparent Payment Addresses" section of the Zcash protocol spec
That section doesn't exist any more in the that document you pointed to.
I have just realized many important things are missing in the Zcash docs.
I'd really like to have a reference for :
Most helpful comment
There are three levels at which you might want to validate an address:
For 1, you need a library that implements Base58Check. For debugging I sometimes use the Python base58 module, which has a
base58.b58decode_checkfunction. There are equivalents available in most commonly-used programming languages.For 2, read the "Transparent Payment Addresses" section of the Zcash protocol spec. Note that we may support additional address types in future (in particular we almost certainly will add support for BIP32-style addresses), so if you validate at this level and don't update that code when new types are added, you'll end up excluding them.
For 3, there's really no way to tell.