Skip to content

How many bits of entropy does this use? #95

Discussion options

You must be logged in to vote

In normal usage, the seed size is defined by the SEED_LEN macro, which is 32 bytes/256 bits by default (the full private key size of ed25519). The seeds are randomly generated using libsodium, but the actual entropy of the seed will depend on the source of the random data (see https://libsodium.gitbook.io/doc/generating_random_data). Given that these functions are designed for cryptographic applications, they should have a reasonably high entropy.

If you use the passphrase option, your generated keys will only be as strong as the passphrase you use (and never a higher entropy than SEED_LEN). If a weak passphrase is used, it could be feasible to brute-force the key pair for a vanity addres…

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@GiverofMemory
Comment options

Answer selected by GiverofMemory
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants