ZCashAccount.fromSaplingExtendedFullViewKey constructor

ZCashAccount.fromSaplingExtendedFullViewKey({
  1. required String uskBytes,
  2. required ZCashAccountConfig config,
  3. required ZCryptoContext context,
})

Implementation

factory ZCashAccount.fromSaplingExtendedFullViewKey({
  required String uskBytes,
  required ZCashAccountConfig config,
  required ZCryptoContext context,
}) {
  final key = ZCashEncodingUtils.decodeSaplingExtendedFullViewKey(
    uskBytes,
    config.coinConfig.hrpSaplingExtendedSpendingKey,
  );
  return ZCashAccount._(
    config: config,
    context: context,
    sapling: Zip32Sapling.fromExtendedFullViewKey(key),
    orchard: null,
    transparent: null,
  );
}