The zero client standard Web3 provider for the vapdeploy Vapory smart-contract deployment system.
The zero-client provider was designed by the @MetaMask team, namely, @kumavis to handle the management of accounts and key signing for web3 RPC interaction.
See more here: zero-client
{
type: 'zero-client',
getAccounts: function(cb) {
cb(null, ['0x2233eD250Ea774146B0fBbC1da0Ffa6a81514cCC']);
},
signTransaction: function(rawTx, cb) {
const privateKey = new Buffer('c55c58355a32c095c7074837467382924180748768422589f5f75a384e6f3b33', 'hex');
const tx = new Tx(rawTx);
tx.sign(privateKey);
cb(null, vapUtil.bufferToHex(tx.serialize()));
},
host: 'https://morden.infura.io',
port: 8545,
}
Note, please do not store your accounts or private keys in your vapdeploy provider settings... please! That is stupid and dangerous.
npm install --save vapdeploy-provider-zero-client
Released under the MIT License, see LICENSE.md file.