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
var async = require('async'); | |
var Trie = require('merkle-patricia-tree/secure'); | |
// var Trie = require('../merkle-patricia-tree/secure'); | |
var trie = new Trie(); | |
var a = new Buffer('f8448080a056e81f171bcc55a6ff8345e692c0f86e5b48e01b996cadc001622fb5e363b421a0a155280bc3c09fd31b0adebbdd4ef3d5128172c0d2008be964dc9e10e0f0fedf', 'hex'); | |
var ak = new Buffer('095e7baea6a6c7c4c2dfeb977efac326af552d87', 'hex') | |
var b = new Buffer('f844802ea056e81f171bcc55a6ff8345e692c0f86e5b48e01b996cadc001622fb5e363b421a0db94dc4aab9b6a1a11956906ea34f3252f394576aece12199b23b269bb2738ab', 'hex'); | |
var bk = new Buffer('945304eb96065b2a98b57a48a06ae28d285a71b5', 'hex'); |
This file has been truncated, but you can view the full file.
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
TAP version 13 | |
# [stBlockHashTest] blockhash0 | |
TODO - sync the putDbs and getDbs | |
TODO - sync the putDbs and getDbs | |
ENTER CP MODE ---------> | |
SET PUT TO SCRATCH | |
TODO - sync the putDbs and getDbs | |
READ FAILED: 56e81f171bcc55a6ff8345e692c0f86e5b48e01b996cadc001622fb5e363b421 | |
EXIT CP MODE <--------- | |
SET PUT TO DB |
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
var EC = require('./').ec; | |
var BigInteger = require('bigi'); | |
var ecdsa = require('ecdsa'); | |
var BN = require('bn.js'); | |
// Create and initialize EC context | |
// (better do it once and reuse it) | |
var ec = new EC('secp256k1'); | |
// Generate keys |
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
{ | |
"randomStatetest": { | |
"env": { | |
"currentCoinbase": "945304eb96065b2a98b57a48a06ae28d285a71b5", | |
"currentDifficulty": "5623894562375", | |
"currentGasLimit": "115792089237316195423570985008687907853269984665640564039457584007913129639935", | |
"currentNumber": "0", | |
"currentTimestamp": "1", | |
"previousHash": "5e20a0453cecd065ea59c37ac63e079ee08998b6045136a8ce6635c7912ec0b6" | |
}, |
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
const ethUtil = require('ethereumjs-util'); | |
function calcSeed(blockNum) { | |
var epoch; | |
var epochLen = 30000; | |
var seed = new Buffer(32); | |
seed.fill(0); | |
if (blockNum > 2048 * 30000) { |
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
[{ | |
"step": 0, | |
"pc": "0", | |
"depth": 0, | |
"opcode": { | |
"opcode": "ADDRESS", | |
"fee": 2 | |
}, | |
"gas": "979000", | |
"memory": "", |
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
[{ | |
"step": 0, | |
"pc": "0", | |
"depth": 0, | |
"opcode": { | |
"opcode": "PUSH32", | |
"fee": 3 | |
}, | |
"gas": "100000", | |
"memory": "", |
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
var express = require('express'), | |
request = require('request'), | |
through = require('through'), | |
async = require('async'), | |
url = require('url'), | |
path = require('path'), | |
fs = require('fs'); | |
var injectScript = '<script type="text/javascript">' + fs.readFileSync(__dirname + '/injectScript.js') + '</script>'; |
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
{ | |
"name": "vapor", | |
"version": "0.0.0", | |
"dependencies": { | |
"bignum": { | |
"version": "0.9.2", | |
"from": "[email protected]", | |
"resolved": "git+https://github.com/kumavis/node-bignum#667067f48f1d30dca67a643d3ddd8910c8e640a7", | |
"dependencies": { | |
"nan": { |
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
{ | |
"name": "vapor", | |
"version": "0.0.0", | |
"dependencies": { | |
"bignum-browserify": { | |
"version": "0.0.1", | |
"from": "[email protected]", | |
"resolved": "git+https://github.com/wanderer/bignum-browserify#9bf1ba19fc8088968d5855b30223060471a02a16", | |
"dependencies": { | |
"bn.js": { |