pokkst/litecoinj

error Context does not match implicit network params

Opened this issue · 0 comments

hi when I use your library with bitcoinJ for create lite coin and bitcoin wallet together, I have error error Context does not match implicit network params and Duplicate class org.bitcoin.NativeSecp256k1 found in modules bitcoinj-core-0.16.2 (org.bitcoinj:bitcoinj-core:0.16.2) and litecoinj-0.3.0 (com.github.pokkst:litecoinj:0.3.0)
. how to fix that ?
my example:

val params = MainNetParams.get()
val seed = DeterministicSeed(mnemonic, null, "", System.currentTimeMillis() / 1000)
val wallet = Wallet.fromSeed(params, seed, Script.ScriptType.P2WPKH)

// with your dependency
val params1 =MainNetParams.get()
val seed1 = DeterministicSeed(mnemonic, null, "", System.currentTimeMillis() / 1000)
val wallet1 = Wallet.fromSeed(params1, seed1, Script.ScriptType.P2WPKH)

here I receive this error.