Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

error Context does not match implicit network params #13

Open
saeedishayan76 opened this issue Nov 18, 2023 · 0 comments
Open

error Context does not match implicit network params #13

saeedishayan76 opened this issue Nov 18, 2023 · 0 comments

Comments

@saeedishayan76
Copy link

saeedishayan76 commented Nov 18, 2023

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants
@saeedishayan76 and others