This project uses secp256k1, keccak256 hashing, and BIP39 for generating vanity addresses, implementing secure cryptographic operations and creating mnemonic phrases.
These instructions will get you a copy of the project up and running on your local machine for development and testing purposes.
You will need to have the following installed:
- npm
- node.js
- ethereum-cryptography
a) Create a new project in this directory
bash npm init -y
b) Install ethereum-cryptography
bash npm install ethereum-cryptography
c) Edit the package.json file to include the following:
"main": "ether.js"
"type": "module",
Run the script using the following command:
node ether.js
"hex_address: '0xabcd5ddad1389a502cbf75fe01b1c6ecaac2a2a4",
"printKey: 'private key in hex here"
Go to etherscan.io and paste the address in the search bar to verify the address.
You can import the private key into an ethereum wallet to access the funds.
You can also use the commented code to generate memonic phrases and use them to generate private keys and addresses.