Skip to content

Conversation

ok2
Copy link

@ok2 ok2 commented Apr 5, 2021

With this change coinb.in uses the same mechanism to generate seed from a passphrase like https://bip32.org: 50000 rounds of HMAC SHA-256 encryption.

The amount of rounds is configurable and the value 0 results in the same mechanism as before for compatibility. The generated seed is also shown in WIF format, which is also with bitcoin-cli compatible. It is possible now to generate the same wallet using bitcoin-cli sethdseed true <seed_wif> command in bitcoin core.

To be really fully compatible with bitcoin-cli, the fix in #228 pull request is also required.

…for HD wallet, also show the generated seed in WIF format.
@ok2 ok2 changed the title Use HMAC SHA-256 with configurable amount of rounds to generate seed. Use HMAC SHA-256 with configurable amount of rounds to generate seed Apr 5, 2021
@OutCast3k
Copy link
Owner

Nice work.

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

Successfully merging this pull request may close these issues.

2 participants