2022-10-04 05:25:13 -07:00
|
|
|
package cash.z.ecc.android.sdk.fixture
|
|
|
|
|
|
|
|
import cash.z.ecc.android.bip39.Mnemonics
|
2023-05-18 04:36:15 -07:00
|
|
|
import cash.z.ecc.android.sdk.internal.deriveUnifiedSpendingKey
|
|
|
|
import cash.z.ecc.android.sdk.internal.jni.RustDerivationTool
|
2022-10-04 05:25:13 -07:00
|
|
|
import cash.z.ecc.android.sdk.model.Account
|
|
|
|
import cash.z.ecc.android.sdk.model.ZcashNetwork
|
|
|
|
|
|
|
|
object WalletFixture {
|
|
|
|
val NETWORK = ZcashNetwork.Mainnet
|
|
|
|
const val SEED_PHRASE =
|
|
|
|
"kitchen renew wide common vague fold vacuum tilt amazing pear square gossip jewel month tree shock scan alpha just spot fluid toilet view dinner"
|
|
|
|
|
|
|
|
suspend fun getUnifiedSpendingKey(
|
|
|
|
seed: String = SEED_PHRASE,
|
|
|
|
network: ZcashNetwork = NETWORK,
|
|
|
|
account: Account = Account.DEFAULT
|
2023-05-18 04:36:15 -07:00
|
|
|
) = RustDerivationTool.new().deriveUnifiedSpendingKey(Mnemonics.MnemonicCode(seed).toEntropy(), network, account)
|
2022-10-04 05:25:13 -07:00
|
|
|
}
|