This file contains hidden or 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
| //npm install rlp | |
| //npm install levelup | |
| //usage | |
| //node ./dumpBlocks.js > blocks.json | |
| var rlp = require('rlp'); | |
| var levelup = require('levelup'); | |
| var db = levelup('/path/to/home/.ethereum/blocks'); | |
| var blocks = []; |
This file contains hidden or 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
| Verifying that +mjb is my Bitcoin username. You can send me #bitcoin here: https://onename.io/mjb |
This file contains hidden or 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
| //npm install ethereum-lib | |
| //npm install level | |
| var Ethereum = require('ethereum-lib'), | |
| levelup = require('levelup'); | |
| var internals = {}, | |
| Trie = Ethereum.Trie, | |
| rlp = Ethereum.rlp, | |
| etherUtils = Ethereum.utils, |
This file contains hidden or 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
| eth.getKey(function(key) { | |
| eth.getStorageAt("someaddr", "somelocation", function(address) { | |
| eth.compile("thiscode", function(code) { | |
| eth.transact({to: address, from: key, gas: 10000, gasPrice: eth.gasPrice, data:[code]}, function(tx){ | |
| console.log(tx) | |
| }) | |
| }) | |
| }) | |
| }) |
This file contains hidden or 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
| var ecdsa = require('./'); | |
| var emptyMsg = new Buffer([0]); | |
| var privKey = "c85ef7d79691fe79573b1a7064c19c1a9819ebdbd1faaab1a8ec92344438aaf4"; | |
| var pubKey = ecdsa.createPublicKey(new Buffer(privKey, 'hex'), true); | |
| var sig = ecdsa.signCompact(new Buffer(privKey, 'hex'), emptyMsg); | |
| console.log('recid: ', sig.recoveryId) |
This file contains hidden or 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
| t = new Buffer('020947751e3022ecf3016be03ec77ab0ce3c2662b4843898cb068d74f698ccc8ad', 'hex'); | |
| var p =ecdsa.decompressPublicKey(t); | |
| console.log(p.toString('hex')); | |
| ///040947751e3022ecf3016be03ec77ab0ce3c2662b4843898cb068d74f698ccc8ad75aa17564ae80a20bb044ee7a6d903e8e8df624b089c95d66a0570f051e5a05b |
This file contains hidden or 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
| { | |
| "env": { | |
| "node": true | |
| }, | |
| "rules": { | |
| "strict": 0, | |
| "no-underscore-dangle": 0, | |
| "quotes": [2, "single"] | |
| }, | |
| "globals":{ |
This file contains hidden or 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
| ### Keybase proof | |
| I hereby claim: | |
| * I am wanderer on github. | |
| * I am mjbz (https://keybase.io/mjbz) on keybase. | |
| * I have a public key whose fingerprint is 1F52 66C9 BDC6 316F 5F28 3FF9 1125 FD6A 17B4 35ED | |
| To claim this, I am signing this object: |
This file contains hidden or 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
| Running 1 test case... | |
| Entering test suite "EthereumTests" | |
| Entering test suite "StateTests" | |
| Entering test case "userDefinedFileState" | |
| *** [ 16:48:08 | main ] Testing user defined test: ./tests/StateTests/stSystemOperationsTest.json | |
| =S= [ 16:48:08 | main ] Executing {095e7bae…/0$100000+10000@1<-a94f5374… #0} on 2c7bf572b2eee6f10935a830c578fa40616059407eb6efbe31d21ea260757e6f | |
| =S= [ 16:48:08 | main ] f862800182271094095e7baea6a6c7c4c2dfeb977efac326af552d87830186a0801ba07eb46a52bc0414f0d122caef4fb3e69525335dda7aef2b1419b996029cb50d8aa0f9385c44b7cf06fee68276110d9058219e30cd89c8b5470c3bc62e65ec5077dd | |
| EVM [ 16:48:08 | main ] | |
| STACK | |
| MEMORY |
This file contains hidden or 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
| data register[][](writeFlag, nonce, rating) | |
| data admin[1] | |
| def init(): | |
| self.admin[0] = msg.sender | |
| def controll(): | |
| if msg.sender == self.admin[0]: | |
| suicide(msg.sender) |