This is the proposed API for whisper v5.
Returns the current semver version number.
| // Change accountToSignWith to the address of your account. | |
| var Web3 = require('web3'); | |
| var web3 = new Web3(); | |
| web3.setProvider(new web3.providers.HttpProvider('http://localhost:8545')); | |
| var accountToSignWith = '0xbedcf417ff2752d996d2ade98b97a6f0bef4beb9'; | |
| var message = 'Lorem ipsum dolor sit amet, consectetur adipiscing elit. Tubulum fuisse, qua illum, cuius is condemnatus est rogatione, P. Eaedem res maneant alio modo.' |
eth://inigomontoya.eth -> calls resolver.addr() -> shows account page with balance or somethinghttp://inigomontoya.eth -> calls resolver.a() -> will resolve a normal DNS ipbzz://inigomontoya.eth -> calls resolver.multiHash() -> will resoslve using swarmipfs://inigomontoya.eth -> calls resolver.multiHash() -> will resoslve using ipfsinigomontoya.eth -> will default to swarm and calls resolver.multiHash() -> will resoslve using swarm| /** | |
| * Base contract that all upgradeable contracts should use. | |
| * | |
| * Contracts implementing this interface are all called using delegatecall from | |
| * a dispatcher. As a result, the _sizes and _dest variables are shared with the | |
| * dispatcher contract, which allows the called contract to update these at will. | |
| * | |
| * _sizes is a map of function signatures to return value sizes. Due to EVM | |
| * limitations, these need to be populated by the target contract, so the | |
| * dispatcher knows how many bytes of data to return from called functions. |
| ## Full changelog | |
| - Client binary refactor - asking user for permission before updating Geth (#1383) | |
| - **.gitignore:** add 'npm-debug.log' (#1310) | |
| - **codeclimate:** add config (#1381) | |
| - **codeclimate:** enable GPA rating (#1410) | |
| - **codeclimate:** fix eslint configuration in progress (#1389) |
I hereby claim:
To claim this, I am signing this object:
| const spawn = require('child_process').spawn; | |
| var bruteForce = function(path, pw, callback) { | |
| var error = false; | |
| // start import process | |
| var nodeProcess = spawn(nodeBinary, ['wallet', 'import', path]); | |
| nodeProcess.once('error',function(){ | |
| error = true; |
| // Open the wallet console: Menu -> Develop -> Toggle console ... | |
| // Run the following script | |
| _.each(Wallets.find().fetch(), function(item){ | |
| if(item.address) | |
| Wallets.update(item._id, {$set: {address: item.address.toLowerCase()}}); | |
| }); | |
| _.each(CustomContracts.find().fetch(), function(item){ | |
| if(item.address) | |
| CustomContracts.update(item._id, {$set: {address: item.address.toLowerCase()}}); |
| // un"addresses" contract object | |
| var myContrac2 = new web3.eth.contract(abi) | |
| myContrac2.address = '0x12345678...'; // add address later | |
| // initiate with address | |
| var myContrac = new web3.eth.contract(abi, address) | |
| // deploy contract | |
| eventemitter = new web3.eth.contract(abi).deploy(param1, {data: '0x23456'}); |