-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Expanded README, added a QRcode printout, mask password + minor impro…
…vements
- Loading branch information
Showing
4 changed files
with
99 additions
and
20 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,32 @@ | ||
# Keyfile.hex privatekey extractor or Keyfile generator | ||
This program was made for [Vertcoin OCM](https://github.com/vertcoin-project/one-click-miner-vnext). | ||
Some users complained about not being able to mine to their own address while using OCM, and would rather have the coins being sent directly into their controlled wallet. | ||
|
||
This program will allow the user to either extract the private keys (Compressed WIF format) from a keyfile.hex and import them into their wallet of choice, or generate their own keyfile with a previously generated private key. | ||
|
||
Use this tool at your own risk, if you lose your keyfile.hex, and private keys you can NOT recover any coins there may be associated with that key. | ||
You can run this in an offline environment if you choose to do so. | ||
|
||
## Private key extractor | ||
Extract the private key from your already generated keyfile.hex. | ||
To use the extractor you need to have the keyfile.hex inside the folder from where you run the program. | ||
Once launching the program it will prompt you for a password, this is the same password your keyfile is encrypted with, without it you can not extract the private key. | ||
Once you have entered the password the program will output your private key in a compressed WIF format which you can then import into your wallet of choice. | ||
|
||
To use the extractor you need to have a keyfile.hex inside the directory from where you run the program. | ||
|
||
After launching the program it will prompt you for a password, this is the same password your keyfile is encrypted with, without it you can not extract the private key. | ||
|
||
Once you have entered the password the program will output your private key in a compressed WIF format which you can then import into your wallet of choice. It will also print a QR code to make it easy to import into wallets like Coinomi. | ||
|
||
|
||
## How to build | ||
I strongly recommend people to build this themselves. | ||
|
||
You need to have [Go](https://golang.org/) installed in order to be able to build this. | ||
|
||
When Go is installed and the program downloaded you need to download the used packages: | ||
```bash | ||
go mod download | ||
``` | ||
Once finished you can build the program: | ||
```bash | ||
go build extract-privatekey.go | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters