decodeSaplingExtendedFullViewKey static method
Implementation
static List<int> decodeSaplingExtendedFullViewKey(
String extendedKey, {
String? hrp,
}) {
try {
final decode = Bech32Decoder.decodeWithoutHRP(extendedKey);
if (hrp != null && decode.$1 == hrp) return decode.$2;
throw CoreErrors.zcashInvalidKeyData(
"Sapling full view.",
reason: "Mismatch network hrp.",
);
} on BuError {
rethrow;
} catch (_) {
throw CoreErrors.zcashInvalidKeyData("Sapling full view.");
}
}