UnifiedSpendingKey class

Represents a unified spending key (USK) containing transparent, Sapling, and Orchard components.

Constructors

UnifiedSpendingKey({required Zip32Sapling sapling, required Zip32Orchard orchard, required Bip32Slip10Secp256k1 transparent, required ZIP32CoinConfig config, required ZCryptoContext context})
factory
UnifiedSpendingKey.fromSeed({required List<int> seedBytes, required ZcashNetwork network, required ZCryptoContext context, Bip32KeyIndex? accountIndex})
factory
UnifiedSpendingKey.fromUnifiedSpendKeyBytes({required List<int> uskBytes, required ZcashNetwork network, required ZCryptoContext context})
factory

Properties

config → ZIP32CoinConfig
ZIP32 coin configuration for key derivation.
final
context → ZCryptoContext
final
hashCode → int
The hash code for this object.
no setterinherited
orchard → Zip32Orchard
Orchard ZIP32 spending key component.
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
sapling → Zip32Sapling
Sapling ZIP32 spending key component.
final
transparent → Bip32Slip10Secp256k1
Transparent BIP32/SLIP-10 secp256k1 spending key component.
final

Methods

address({required DiversifierIndex index, UnifiedAddressRequest request = const UnifiedAddressRequest.defaultRequest(), Bip44Changes scope = Bip44Changes.chainExt}) → UnifiedDerivedAddress
Returns the unified address at the given index, using the specified address request configuration.
defaultAddress({UnifiedAddressRequest request = const UnifiedAddressRequest.defaultRequest(), Bip44Changes scope = Bip44Changes.chainExt}) → UnifiedDerivedAddress
Returns the default unified address for this account using the specified request configuration.
defaultTransparentAddress({Bip44Changes scope = Bip44Changes.chainExt, CryptoKeyEncoding pubKeyMode = CryptoKeyEncoding.base, List<int>? transparentScriptHash, TransparentAddressRequestType transparentAddressType = TransparentAddressRequestType.p2pkh}) → TransparentDerivedAddress
Returns the default transparent-derived address with the specified pubkey mode and address type.
encodeUnifiedSpeningKeyBytes() → List<int>
Encodes this unified spending key (USK) into Zcash-compatible unified bytes.
findAddress({required DiversifierIndex from, Bip44Changes scope = Bip44Changes.chainExt, UnifiedAddressRequest request = const UnifiedAddressRequest.defaultRequest()}) → UnifiedDerivedAddress
Finds the first unified address starting from the given index that matches the specified request.
findSaplingAddressFrom(DiversifierIndex from, {Bip44Changes scope = Bip44Changes.chainExt}) → SaplingDerivedAddress?
Finds the first Sapling-derived address starting from the given diversifier index within the specified scope.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
saplingAddressAt(DiversifierIndex index, {Bip44Changes scope = Bip44Changes.chainExt}) → SaplingDerivedAddress
Returns the Sapling-derived address at the given diversifier index.
toString() → String
A string representation of this object.
inherited
toUnifiedFullViewingKey() → UnifiedFullViewingKey
Converts this USK into its corresponding unified full viewing key (UFVK).
toUnifiedIncomingViewingKey({Bip44Changes scope = Bip44Changes.chainExt}) → UnifiedIncomingViewingKey
transparentAddress(DiversifierIndex index, {Bip44Changes scope = Bip44Changes.chainExt, CryptoKeyEncoding pubKeyMode = CryptoKeyEncoding.base, 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