decodeSaplingExtendedFullViewKey static method
Implementation
static List<int> decodeSaplingExtendedFullViewKey(
String extendedKey,
String hrp,
) {
try {
final decode = Bech32Decoder.decodeWithoutHRP(extendedKey);
if (decode.$1 == hrp) return decode.$2;
throw ZCashKeyEncodingError.invalidKeyData(
"Sapling full view.",
reason: "Missmatch network hrp.",
);
} on ZCashKeyEncodingError {
rethrow;
} catch (_) {
throw ZCashKeyEncodingError.invalidKeyData("Sapling full view.");
}
}