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
`"use strict"` | |
const keythereum = require('keythereum') | |
const c = console | |
// private key from bitcoin | |
let privateKey = "10f2fb3aaac742b2f6c2a0a830d5330846633c8a139696cca2c0e379944f62b2" | |
let password = "bla" | |
// --- |
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
`"use strict"` | |
const keythereum = require('keythereum') | |
const c = console | |
// private key from bitcoin | |
let privateKey = "10f2fb3aaac742b2f6c2a0a830d5330846633c8a139696cca2c0e379944f62b2" | |
let password = "bla" | |
// --- |
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
# Set one or more individual labels | |
LABEL com.example.version="0.0.1-beta" | |
LABEL vendor="microjasa" | |
LABEL com.example.release-date="2017-03-02" | |
LABEL com.example.version.is-production="" | |
FROM ubuntu | |
FROM michaelgord/microjasa-wallet:latest | |
RUN apt-get update && apt-get install -y nodejs | |
CMD echo "pulling node." |
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 walkthrough assumes you have successfully downloaded bitcoind and connected to bitcoind daemon | |
// First we create a wallet backup file and then restore the wallet from the backup file | |
// Use the backupwallet command to back up your wallet with the filename as the parameter | |
// Here the wallet is backed up to the file wallet.backup | |
bitcoin-cli backupwallet wallet.backup | |
// Now you can import the backup file | |
bitcoin-cli importwallet wallet.backup |
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 gist assumes you have already setup bitcoind | |
// If you have not you can go to that walkthrough here https://gist.github.com/bitgord/88547c580139d7629dd103ec923adc0a | |
// When you first run bitcoind you get an arror message that requires a username and password | |
// create a new file in the bitcoin directory called bitcoin.conf and add a username and password | |
rpcuser=username | |
rpcpassword=1234 | |
// While you are configuring the file you can add other customizations | |
// View the customizations with the help command |
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
// Clone the repo into your terminal | |
git clone https://github.com/bitcoin/bitcoin.git | |
// Change directory into the new folder | |
cd bitcoin | |
// Checkout the versions | |
git tag | |
// Read the docs in the ReadME and read the build docs |
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
contract SimpleWallet { | |
// address is the owner | |
address owner; | |
struct WithdrawlStruct { | |
address to; | |
uint amount; | |
} |
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
First look at the documentation on the Ethereum Go Github. | |
https://github.com/ethereum/go-ethereum | |
You will find a section with <code>init</code> and on "Operating a Private Network. In that section is | |
an example genesis.json file, also pasted below. You can change these parameters however you want. | |
I suggest that you make a random nonce to avoid people connecting to your private chain. The alloc | |
object is the prefund accounts with tokens. | |
{ | |
"coinbase" : "0x0000000000000000000000000000000000000000", |
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
// From mongo shell run this to insert | |
db.customers.insert({ | |
first_name: 'Test', | |
last_name: 'Testlast', | |
age: '32', | |
address: { | |
street: '111 street', | |
city: 'Toronto', | |
province: 'ON', | |
}, |
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
// Start Mongod // From terminal run mongod | |
// start mongo shell // from terminal run mongo | |
// Create a new Collection | |
db.createCollection('[[name]]') | |
// Create a User | |
db.createUser( { "user" : "[[name]]", | |
"pwd": "[[password]]" } ) |
NewerOlder