-
public interface DerivationTool
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public classDerivationTool.Companion
-
Method Summary
Modifier and Type Method Description abstract List<UnifiedFullViewingKey>deriveUnifiedFullViewingKeys(ByteArray seed, ZcashNetwork network, Integer numberOfAccounts)Given a seed and a number of accounts, return the associated Unified Full Viewing Keys. abstract UnifiedFullViewingKeyderiveUnifiedFullViewingKey(UnifiedSpendingKey usk, ZcashNetwork network)Given a unified spending key, return the associated unified full viewing key. abstract UnifiedSpendingKeyderiveUnifiedSpendingKey(ByteArray seed, ZcashNetwork network, Account account)Derives and returns a unified spending key from the given seed for the given account ID. abstract StringderiveUnifiedAddress(ByteArray seed, ZcashNetwork network, Account account)Given a seed and account index, return the associated Unified Address. abstract StringderiveUnifiedAddress(String viewingKey, ZcashNetwork network)Given a Unified Full Viewing Key string, return the associated Unified Address. -
-
Method Detail
-
deriveUnifiedFullViewingKeys
abstract List<UnifiedFullViewingKey> deriveUnifiedFullViewingKeys(ByteArray seed, ZcashNetwork network, Integer numberOfAccounts)
Given a seed and a number of accounts, return the associated Unified Full Viewing Keys.
- Parameters:
seed- the seed from which to derive viewing keys.numberOfAccounts- the number of accounts to use.
-
deriveUnifiedFullViewingKey
abstract UnifiedFullViewingKey deriveUnifiedFullViewingKey(UnifiedSpendingKey usk, ZcashNetwork network)
Given a unified spending key, return the associated unified full viewing key.
- Parameters:
usk- the key from which to derive the viewing key.
-
deriveUnifiedSpendingKey
abstract UnifiedSpendingKey deriveUnifiedSpendingKey(ByteArray seed, ZcashNetwork network, Account account)
Derives and returns a unified spending key from the given seed for the given account ID.
Returns the newly created ZIP 316 account identifier, along with the binary encoding of the `UnifiedSpendingKey` for the newly created account. The caller should store the returned spending key in a secure fashion.
- Parameters:
seed- the seed from which to derive spending keys.account- the account to derive.
-
deriveUnifiedAddress
abstract String deriveUnifiedAddress(ByteArray seed, ZcashNetwork network, Account account)
Given a seed and account index, return the associated Unified Address.
- Parameters:
seed- the seed from which to derive the address.account- the index of the account to use for deriving the address.
-
deriveUnifiedAddress
abstract String deriveUnifiedAddress(String viewingKey, ZcashNetwork network)
Given a Unified Full Viewing Key string, return the associated Unified Address.
- Parameters:
viewingKey- the viewing key to use for deriving the address.
-
-
-
-