Created
August 16, 2017 02:47
-
-
Save aunyks/9411cd20409da5a53379082e962bdc12 to your computer and use it in GitHub Desktop.
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
function createWallet(){ | |
let privateKey = createPrivateKey(); | |
let publicKey = getPublicKey(privateKey); | |
let address = createAddress(publicKey); | |
return ({ | |
private: privateKey.toString('hex'), | |
public: publicKey.toString('hex'), | |
address: address | |
}); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
How can I create a wallet and users with this code and snakecoin-server-full-code.py code.
I also want to know how can I connect another node and download the blocks onto it. Should I need to run the same code on another node?