toIvk method

OrchardIncomingViewingKey toIvk({
  1. required Bip44Changes scope,
  2. required ZCryptoContext context,
})

Implementation

OrchardIncomingViewingKey toIvk({
  required Bip44Changes scope,
  required ZCryptoContext context,
}) {
  return switch (scope) {
    Bip44Changes.chainInt => OrchardIncomingViewingKey.fromFvk(
      fvk: deriveInternal(),
      context: context,
    ),
    Bip44Changes.chainExt => OrchardIncomingViewingKey.fromFvk(
      fvk: this,
      context: context,
    ),
  };
}