Post
Topic
Board Electrum
Re: How can i generate electrum-seed?
by
nc50lc
on 28/01/2023, 04:01:18 UTC
but i need to make "segwit seed"
such that I inserted it into the electrum and saw the "segwit phrase type" in the window.
-snip-
I would be very, very grateful for a piece of Java code.
I hope that it's not the insecure method of selecting words and computing the checksum...
Anyways, try to check if "Electrum V2" from this repository has the right code for you: github.com/harningt/atomun-mnemonic (Java)
I can't help you much with it since I don't know Java.

For reference here's part of Electrum's code related to its seed generation: github.com/spesmilo/electrum/blob/master/electrum/mnemonic.py#L190-L222 (python)