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
<!DOCTYPE html> | |
<html lang="en"> | |
<head> | |
<meta charset="utf-8"> | |
<title>Collapsible Tree Example</title> | |
<style> | |
.node circle { |
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
# 10000 node | |
Radix Tree | |
------- | |
cbor 660 bytes | |
compressed size 572 | |
Ethereum | |
----- | |
rlp 1649 bytes |
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
class ProviderUpdater { | |
constructor (provider) { | |
this._provider = provider | |
this._handler = { | |
get: (obj, name) => { | |
return this._provider[name] | |
}, | |
set: (obj, name, value) => { | |
this._provider[name] = value |
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
(module | |
(func $add | |
(param $a i64) | |
(param $b i64) | |
(param $c i64) | |
(param $d i64) | |
(param $a1 i64) | |
(param $b1 i64) | |
(param $c1 i64) |
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
recover bug in js.js | |
testing with r as 1 | |
message: f75c6b18a72fabc0f0b888c3da58e004f0af1fe14f7ca5d8c897fe164925d5e9 | |
signature: 0000000000000000000000000000000000000000000000000000000000000001efffd310ac743f371de3b9f7f9cb56c0b28ad43601b4ab949f53faa07bd2c804 | |
recovery: 0 | |
result: 02f08a7cb6296e279bd31b8b382ad5d349113b15048f9cc1d220508eed1d705e62 | |
expected: 03171055193f70bead2e5c90af8c3a3f8da20663c359c16f895c61579218b0717b | |
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 Transaction = require('ethereumjs-tx'); | |
var Web3 = require('web3') | |
var request = require("request"); | |
var rpc = 'http://localhost:8545' | |
var web3 = new Web3() | |
web3.setProvider(new web3.providers.HttpProvider(rpc)) | |
var tx = new Transaction(); |
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
// imports | |
var VM = require('ethereumjs-vm') | |
var Trie = require('merkle-patricia-tree') | |
var async = require('async') | |
var ethUtils = require('ethereumjs-util') | |
var Account = require('ethereumjs-account') | |
var Tx = require('ethereumjs-tx') | |
var crypto = require('crypto') | |
// read in the solidity code and compile it |
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 Ethash = require('./') | |
const levelup = require('levelup') | |
const memdown = require('memdown') | |
Ethash.prototype.verifySubmit = function (number, headerHash, nonce, cb) { | |
var self = this | |
console.log(number); | |
this.loadEpoc(number, function () { | |
console.log("EPOC set"); | |
console.log(self.seed.toString('hex')); |
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 VM = require('ethereumjs-vm') | |
var utils = require('ethereumjs-util') | |
var Block = require('ethereumjs-block') | |
var Account = require('ethereumjs-account') | |
var Tx = require('ethereumjs-tx') | |
var rlp = utils.rlp | |
var accountAddress = 'cd2a3d9f938e13cd947ec05abc7fe734df8dd826' | |
var accountKey = 'cow' |
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
I0629 16:21:12.855780 23893 queue.go:142] Hash 626c43cae1efee2362cf4b6a9da6a6ba43e0256633218c125e9c14319efa72f7 already scheduled at index 49150 | |
I0629 16:21:12.855794 23893 queue.go:142] Hash 1097bc644b5540b74b15054666de454fc17975d2f05ff8e71379436f6c025527 already scheduled at index 49151 | |
I0629 16:21:12.855808 23893 queue.go:142] Hash 5f2707fcdcacd1c25ff0d76e250b24cbcee32abc7715921cc00a6ab1d5bfe717 already scheduled at index 49152 | |
I0629 16:21:12.855821 23893 queue.go:142] Hash dff8dc1d2538ebde25836ac8f5a5db550d2776cf89eff432a6ee30b7d75b9d52 already scheduled at index 49153 | |
^[[J^[[J^CI0629 16:25:33.780868 23893 cmd.go:60] Shutting down (interrupt) ... | |
^C^C^CI0629 16:25:50.532086 23893 chain_manager.go:530] Chain manager stopped |