OrchardFullViewingKey.fromBytes constructor

OrchardFullViewingKey.fromBytes({
  1. required List<int> bytes,
  2. required ZCryptoContext context,
})

Implementation

factory OrchardFullViewingKey.fromBytes({
  required List<int> bytes,
  required ZCryptoContext context,
}) {
  final fvk = OrchardFullViewingKey.fromBytesUnchecked(bytes);
  OrchardKeyAgreementPrivateKey.deriveInner(fvk: fvk, context: context);
  OrchardKeyAgreementPrivateKey.deriveInner(
    fvk: fvk.deriveInternal(),
    context: context,
  );
  return fvk;
}