I want to create new own wallet without using ready wallet. But there are random generator that create random number and then private key builds from it. How I can realize that there is no two equal private key in the world?

marked as duplicate by Andrew Chow Oct 23 at 4:34

This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.

up vote 0 down vote accepted

If I was writing wallet software I would use BIP 39 for generating private keys from seed phrases.

Generally I would use standard algorithms (as defined in the BIPs) and standard libraries rather than invent my own.

You avoid generating duplicate keys by using sufficient numbers of words from carefully prepared lists of words and using publicly vetted algorithms carefully designed for the purpose. For example hashing algorithms are designed to minimise the chance of "collisions" (two different sources producing same result).

Choosing a large number of seed words using a properly initialized random number generator should minimise the chances of two users generating the same seed phrase.

  • thanks, but it may that two standard bip generate same private key, true? – Ruhi. Js Oct 15 at 22:45

Not the answer you're looking for? Browse other questions tagged or ask your own question.