UnifiedIncomingViewingKey class
Represents the unified incoming viewing key (UIVK) for transparent, Sapling, and Orchard components.
Constructors
- UnifiedIncomingViewingKey({Bip32Slip10Secp256k1? transparent, SaplingIncomingViewingKey? sapling, OrchardIncomingViewingKey? orchard, ReceiverUnknown? unknown, required ZCashNetwork network})
-
factory
- UnifiedIncomingViewingKey.fromUnifiedFullViewKey({required String ifvk, required ZCashNetwork network})
-
factory
Properties
- config → ZIP32CoinConfig
-
ZIP32 coin configuration used for key derivation.
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- orchard → OrchardIncomingViewingKey?
-
Orchard incoming viewing key component.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- sapling → SaplingIncomingViewingKey?
-
Sapling incoming viewing key component.
final
- transparent → Bip32Slip10Secp256k1?
-
Transparent component of the UIVK (BIP32/SLIP-10 secp256k1).
final
- unknown → ReceiverUnknown?
-
Unknown or unsupported component placeholder.
final
Methods
-
address(
{required DiversifierIndex index, UnifiedAddressRequest request = const UnifiedAddressRequest.defaultRequest()}) → UnifiedDerivedAddress - Returns the unified address at the given index, using the specified address request configuration.
-
defaultAddress(
{UnifiedAddressRequest request = const UnifiedAddressRequest.defaultRequest()}) → UnifiedDerivedAddress - Returns the default unified address for this account using the specified request configuration.
-
defaultTransparentAddress(
{PubKeyModes pubKeyMode = PubKeyModes.compressed, List< int> ? transparentScriptHash, TransparentAddressRequestType transparentAddressType = TransparentAddressRequestType.p2pkh}) → TransparentDerivedAddress - Returns the default transparent-derived address with the specified pubkey mode and address type.
-
encode(
) → String - Encodes this unified incoming viewing key (UIVK) into a Zcash-compatible unified string.
-
findAddress(
{required DiversifierIndex from, UnifiedAddressRequest request = const UnifiedAddressRequest.defaultRequest()}) → UnifiedDerivedAddress - Finds the first unified address starting from the given index that matches the specified request.
-
findSaplingAddressFrom(
DiversifierIndex from) → SaplingDerivedAddress? - Finds the first Sapling-derived address starting from the given diversifier index.
-
getOrchard(
) → OrchardIncomingViewingKey - Returns the Orchard component of the UIVK, or throws if missing.
-
getSapling(
) → SaplingIncomingViewingKey - Returns the Sapling component of the UIVK, or throws if missing.
-
getTransparent(
) → Bip32Slip10Secp256k1 - Returns the transparent component of the UIVK, or throws if missing.
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
saplingAddressAt(
DiversifierIndex index) → SaplingDerivedAddress - Returns the Sapling-derived address at the given diversifier index.
-
toString(
) → String -
A string representation of this object.
inherited
-
transparentAddress(
DiversifierIndex index, {PubKeyModes pubKeyMode = PubKeyModes.compressed, List< int> ? transparentScriptHash, TransparentAddressRequestType transparentAddressType = TransparentAddressRequestType.p2pkh}) → TransparentDerivedAddress - Returns the transparent-derived address at the given index with specified pubkey mode and address type.
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited