decodeBip44Fvk static method
Implementation
static Bip32Slip10Secp256k1 decodeBip44Fvk(List<int> bytes) {
if (bytes.length != 65) {
throw ZCashKeyEncodingError("Invalid transparent fvk bytes length.");
}
return Bip32Slip10Secp256k1.fromPublicKey(
bytes.sublist(Bip32KeyDataConst.chaincodeByteLen),
keyData: Bip32KeyData(
chainCode: Bip32ChainCode(
bytes.sublist(0, Bip32KeyDataConst.chaincodeByteLen),
),
depth: Bip32Depth(3),
fingerPrint: Bip32FingerPrint([0xff, 0xff, 0xff, 0xff]),
index: Bip32KeyIndex.hardenIndex(0),
),
);
}