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

address not correct #3

Open
yoSir opened this issue Jan 16, 2021 · 0 comments
Open

address not correct #3

yoSir opened this issue Jan 16, 2021 · 0 comments

Comments

@yoSir
Copy link

yoSir commented Jan 16, 2021

I tried to get a receive address with this library. However, the address I generated through this library is not in the addresses generated from this website https://iancoleman.io/bip39/#english.
lamp impose shine police secret mixture stem unable kind spawn melody wasp, it's the mnemonic code I used.
LNtGxD3vYKpGr3vccCgTRnqojnK1Vbcrqz, it's the address I generated from this library.
following is my source code:

Long creationTime = 0L;
DeterministicSeed seed = new DeterministicSeed(mnemonic, null, StringUtils.EMPTY, creationTime);
NetworkParameters params = LitecoinNetParameters.get();
Wallet wallet = Wallet.fromSeed(params, seed);
String address = wallet.freshReceiveAddress().toString();
System.out.println("address: " + address);
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

1 participant