ethereumjs/ethereumjs-util Most of the string manipulation methods are provided by ethjs-util 更多的字符串处理方法可以看ethjs-util addHexPrefix index.js:563-569 Adds "0x" to a given String if it does not already start with "0x" 在没有"0x"前缀的…
为了了解ethereumjs/ethereumjs-block-3-代码的使用需要了解的一个模块 https://github.com/ethereumjs/ethereumjs-common Common Ethereum resources (successor for ethereum/common library)公共以太坊资源(以太坊/公共库后续) SYNOPSIS概要 ETHEREUMJS-COMMON Resources common to all Ethereum impleme…
https://github.com/ethereumjs/ethereumjs-common/blob/master/docs/index.md 该API的调用的详细例子可见ethereumjs/ethereumjs-common-3-test Common Common class to access chain and hardfork parameters 访问链和硬分叉参数的Common类 Parameters输入参数 chain (String | Number | Dictiona…
https://github.com/ethereumjs/browser-builds ethereumjs - Browser Builds This repository contains browser builds of the following ethereumjs libraries: 这个存储库包含以下ethereumjs库的浏览器构建(其实就是将下面的ethereumjs库构造成浏览器能够使用的js文件形式) ethereumjs-vm ethereumjs-tx ether…
https://github.com/ethereumjs/ethereumjs-vm/blob/master/docs/index.md vm.runBlockchain Processes blocks and adds them to the blockchain 处理区块并将其添加到区块链中 Parameters输入参数 blockchain Blockchain A blockchain that to process 一个处理的区块链 cb Function the callback…
https://github.com/ethereumjs/ethereumjs-blockchain SYNOPSIS概要 A module to store and interact with blocks 存储区块和与区块进行交互的模块 INSTALL安装 npm install ethereumjs-blockchain EXAMPLE The following is an example to iterate through an existing Geth DB (needs le…
https://github.com/ethereumjs/ethereumjs-vm 其实这就是怎么自己使用该模块来生成一个类似geth客户端的以太坊虚拟机,然后进行各类区块链操作 SYNOPSIS概要 Implements Ethereum's VM in Javascript.用Javascript实现以太坊虚拟机 Fork Support分支支持 Starting with the v2.5.0 release we now support both Byzantium and Cons…
Utilities for handling Ethereum keys ethereumjs-wallet A lightweight wallet implementation. At the moment it supports key creation and conversion between various formats. 轻量级钱包实现.目前,它支持各种格式之间的key的创建和转换 It is complemented by the following packages: et…
https://github.com/ethereumjs/ethereumjs-icap ethereumjs-icap 安装: npm install ethereumjs-icap --save Utilities for handling ICAP addresses. It works in Node.js as well as in the browser via browserify. When minified for a browser, it should be less t…
https://github.com/ethereumjs/ethereumjs-block Encoding, decoding and validation of Ethereum's Block schema 以太坊区块模式的编码.解码和验证 SYNOPSIS概要 Implements schema and functions related to Ethereum's block. 实现与以太坊区块相关的模式和函数 INSTALL安装 npm install ethereumjs-blo…
https://github.com/ethereumjs/merkle-patricia-tree SYNOPSIS概要 This is an implementation of the modified merkle patricia tree as specified in the Ethereum's yellow paper. 这是以太坊黄皮书上指定的改良后的merkle patricia树的实现. The modified Merkle Patricia tree (trie) pr…
1.运行文件 var Buffer = require('safe-buffer').Buffer // use for Node.js <4.5.0 var VM = require('./index.js') // create a new VM instance var vm = new VM({chain : 'rinkeby'})//设置连接的为Rinkeby链 console.log(vm); 2.分析返回的vm对象: VM { opts: { chain: 'rinkeby' },…
ethereumjs-account/test/index.js const Account = require('../index.js') const tape = require('tape') tape('empty constructor', function (tester) { var it = tester.test it('should work', function (t) { var account = new Account() //创建一个空账户 t.equal(acc…
SecureTrie src/secure.js:10-15 Extends Trie 扩展前缀树 You can create a secure Trie where the keys are automatically hashed using SHA3 by using require('merkle-patricia-tree/secure'). It has the same methods and constructor as Trie. 你可以通过使用require('merkle…