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 | |
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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
IN: lib/hooks/index | |
// Mix in middleware from blueprints | |
if(_.isUndefined(controller.find)) | |
controller.find = Controller.find; | |
if(_.isUndefined(controller.create)) | |
Controller.create = Controller.create; | |
if(_.isUndefined(controller.update)) | |
controller.update = Controller.update; | |
if(_.isUndefined(controller.destroy)) |
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 |