Skip to content

Instantly share code, notes, and snippets.

@aunyks
Created August 16, 2017 02:47
Show Gist options
  • Save aunyks/9411cd20409da5a53379082e962bdc12 to your computer and use it in GitHub Desktop.
Save aunyks/9411cd20409da5a53379082e962bdc12 to your computer and use it in GitHub Desktop.
function createWallet(){
let privateKey = createPrivateKey();
let publicKey = getPublicKey(privateKey);
let address = createAddress(publicKey);
return ({
private: privateKey.toString('hex'),
public: publicKey.toString('hex'),
address: address
});
}
@devopsonfire
Copy link

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?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment