deriveChildOvk method

SaplingOutgoingViewingKey deriveChildOvk({
  1. required SaplingOutgoingViewingKey parentOvk,
  2. required List<int> childSk,
})

Implementation

SaplingOutgoingViewingKey deriveChildOvk({
  required SaplingOutgoingViewingKey parentOvk,
  required List<int> childSk,
}) {
  return SaplingOutgoingViewingKey(
    PrfExpand.saplingZip32ChildOvk
        .apply(childSk, data: [parentOvk.inner])
        .sublist(0, 32),
  );
}