toUnifiedIncomingViewingKey method
UnifiedIncomingViewingKey
toUnifiedIncomingViewingKey(
- ZCryptoContext context, {
- Bip44Changes scope = Bip44Changes.chainExt,
Converts this UFVK into a unified incoming viewing key (UIVK) for the specified derivation scope.
Implementation
UnifiedIncomingViewingKey toUnifiedIncomingViewingKey(
ZCryptoContext context, {
Bip44Changes scope = Bip44Changes.chainExt,
}) {
return _cachedIvk[scope] ??= UnifiedIncomingViewingKey(
network: config.network,
orchard: orchard?.toIvk(scope: scope, context: context),
sapling: sapling?.toIvk(scope),
transparent: transparent?.childKey(Bip32KeyIndex(scope.value)),
);
}