hashToAddress static method
Generates an XRP (Ripple) address from the provided address hash.
Implementation
static String hashToAddress(List<int> addrHash) {
if (addrHash.length != QuickCrypto.hash160DigestSize) {
throw AddressConverterException.addressBytesValidationFailed(
reason: "Invalid address bytes.",
);
}
return Base58Encoder.checkEncode([
...AddrKeyValidator.getConfigArg<List<int>>(
CoinsConf.ripple.params.p2pkhNetVer,
"p2pkhNetVer",
),
...addrHash,
], Base58Alphabets.ripple);
}