OrchardFullViewingKey.fromSpendKey constructor

OrchardFullViewingKey.fromSpendKey(
  1. OrchardSpendingKey sk
)

Implementation

factory OrchardFullViewingKey.fromSpendKey(OrchardSpendingKey sk) {
  return OrchardFullViewingKey(
    nk: OrchardNullifierDerivingKey.fromSpendKey(sk),
    rivk: OrchardCommitIvkRandomness.fromSpendKey(sk),
    ak: OrchardSpendValidatingKey(
      OrchardSpendAuthorizingKey.fromSpendingKey(sk).toVerificationKey(),
    ),
  );
}