ltonetwork / seasalt

NaCl compatible cryptography library using Bouncy Castle (Java)
Apache License 2.0
3 stars 1 forks source link

BIP39 support for ED25519 #44

Open jasny opened 2 years ago

jasny commented 2 years ago

Support BIP39 for generating private keys. For ED25519, BIP39 should an alternative to the current (brainwallet) seeding method.

Choosing BIP39 seeding should result in the same key pair for seed when using Ledger.

The current keyPairFromSeed method should move to a separate class BrainwalletEd25519. And a new class Bip39Ed25519 should be added.

To test if the implementation is correct

jasny commented 1 year ago

This is not supported in clients of other languages (js, python). BIP32 / BIP39 is only supported for secp256k1. No need to support this unless it's changed in the LTO protocol and supported everywhere.