encodeBip44Fvk static method

BuBytes encodeBip44Fvk(
  1. Bip32Slip10Secp256k1 bip32
)

Implementation

static BuBytes encodeBip44Fvk(Bip32Slip10Secp256k1 bip32) {
  if (bip32.type != CryptoKeyType.secp256k1) {
    throw CoreErrors.zcashInvalidKeyData(
      "Transparent full view.",
      reason: "Invalid key type.",
    );
  }
  return BuBytes([
    ...bip32.chainCode.toBytes(),
    ...bip32.publicKey.toPublicKeyBytes(),
  ]);
}