I noticed some posts asking for a sample BTC wallet with both private and public keys for testing purposes or just for the sake of privacy.
I made a BTC program that generates 10 sets of BTC addresses from a single hexadecimal private key, which will also give you ETH addresses.
You can grab it from here.
How to Create Your Own BTC and ETH Wallet
7 replies 237 views
guru_wizardMember
Posts: 43 · Reputation: 203
#2Sep 5, 2018, 09:34 PM
not good. what's used for rng seed here? you'll never know. It should be system-dependent at least like in bitcoin core they use last windows messages to do so
src/qt/winshutdownmonitor.cpp
it's '17 bitcoin but sure it stays the same. File was unvisited for 5 years or so that time.
I like the idea and the implementation. I haven't checked the technical aspect of the code, but the structure and the outcome look good.
I have a similar BASH script in my signature. You can check it out in case you find it interesting too.
yield_forkFull Member
Posts: 162 · Reputation: 728
#4Sep 6, 2018, 05:02 AM
Interesting, but I'll give you some opinions and if you want, you can implement them in your code to get better and better:
Do you know the BIP39 iancolaman website? It's a website that generates a mnemonic, seed, xprivs, derived keys, addresses, etc. It would be great to have a tool like this without needing to be on the website. It's possible to create this all in a script and run it on your machine.
It'd also be interesting for the script to generate all types of existing bitcoin addresses:
Another similar interesting site for you to base yourself on, each with one more or less functionality:
https://bitcoiner.guide/seed/
https://gugger.guru/cryptography-toolkit/#!/hd-wallet
I don't advise anyone to generate wallets based on scripts we find out there, especially from strangers (unless you know how to review the code), as a bug could happen that could make you lose your funds.
But as long as you only use it for learning and testing, it's fine.
There are several similar scripts that we can find here on the forum and on this board.
thank you. ❤️
you mean like a stand alone? ahh. nice... ok. i will get back to you on this. interesting.
It's recommended to use use only Bitcoin wallets. Wallets that support scam cryptocurrencies like Ethereum are very risky.
diamond_2021Member
Posts: 34 · Reputation: 220
#8Sep 7, 2018, 11:46 PM
Unfortunately, there are many scam Bitcoin wallets that will not allow you to withdraw your coins once you made a deposit. It has nothing to do with generating of keys though because you will never know which private key created that scam address. The generated address will work for the person who scam others.
Related topics
- Help Needed: BTC Purchase via Trust Wallet Where's My Bitcoin? 12
- Recovering a Bitcoin wallet and address 8
- CipherSeed: A Comprehensive Guide to Super-Secure Crypto Wallet Backups 5
- Curious about recovering BTC from 2010/2011 7
- What derivation path does mm-gen wallet use? 3
- Looking for wallet software that supports custom P2SH redeem scripts? 19