随笔分类 - ethereumjs
以太坊实用的 javascript 代码库集合,比如 ethereumjs-util 和 ethereumjs-tx 等
摘要:1.运行文件 2.分析返回的vm对象: 从上面得知url: 'https://www.rinkeby.io',到该网站一查看: 1)其提供的连接该Rinkeby链的方法为: https://www.rinkeby.io/#geth 和vm返回对象中的bootstrapNodes值是相同的 2)从其提
阅读全文
摘要:所以在ethereumjs-vm/examples/run-transactions-simple例子中要怎么使用http-server 1.首先在ethereumjs-vm/examples/run-transactions-simple目录下将http-server运行起来: 2.然后就能够在浏
阅读全文
摘要:https://github.com/ethereumjs/browser-builds ethereumjs - Browser Builds This repository contains browser builds of the following ethereumjs libraries
阅读全文
摘要:https://github.com/ethereumjs/ethereumjs-vm/blob/master/docs/stateManager.md StateManager 要与本博客的ethereumjs/ethereumjs-account-1-简介和API结合学习,然后你就能够发现Sta
阅读全文
摘要:https://github.com/ethereumjs/ethereumjs-vm/blob/master/docs/index.md vm.runBlockchain Processes blocks and adds them to the blockchain 处理区块并将其添加到区块链中
阅读全文
摘要:根据代码发现还要了解的模块有: 在本博客的ethereumjs分类中可见他们的学习文档 其实这就是怎么自己使用各个模块来生成一个类似geth客户端的以太坊虚拟机,然后进行各类区块链操作。然后上面的每个模块对应的就是实现这个虚拟机的各个部分 1. ethereumjs-vm/tests/Blockch
阅读全文
摘要:https://github.com/ethereumjs/ethereumjs-vm/tree/master/examples/run-transactions-simple prerequisite先决条件 然后还要将package.json中的模块安装了: Instruction Run co
阅读全文
摘要:ethereumjs-vm的例子有用到这个 看完ethereumjs-vm,再看他ethereumjs/browser-builds,然后最后看他http-server,然后就能了解ethereumjs-vm的例子ethereumjs-vm/examples/run-transactions-sim
阅读全文
摘要:https://github.com/ethereumjs/ethereumjs-block Encoding, decoding and validation of Ethereum's Block schema 以太坊区块模式的编码、解码和验证 SYNOPSIS概要 Implements sch
阅读全文
摘要:https://github.com/ethereumjs/ethereumjs-block/blob/master/docs/index.md 详细的调用代码可见本博客的ethereumjs/ethereumjs-block-3-tests 1.Block区块 Creates a new bloc
阅读全文
摘要:之前可以先了解一下另一个模块,看本博客的ethereumjs/ethereumjs-common部分内容 通过tests测试文件能够帮助更好了解API的使用 ethereumjs-block/tests/header.js ethereumjs-block/tests/block.js ethere
阅读全文
摘要:https://github.com/Level/levelup Special Notes What happened to db.createWriteStream() levelup(db[, options[, callback]]) The main entry point for cre
阅读全文
摘要:https://github.com/ethereumjs/ethereumjs-blockchain/tree/master/test 运行: 返回:
阅读全文
摘要:https://github.com/Level/levelup A node.js wrapper for abstract-leveldown compliant stores 一个为实现抽象leveldown兼容存储器的node.js封装器 levelup Introduction Fast
阅读全文
摘要:https://github.com/ethereumjs/ethereumjs-blockchain SYNOPSIS概要 A module to store and interact with blocks 存储区块和与区块进行交互的模块 INSTALL安装 EXAMPLE The follow
阅读全文
摘要:https://github.com/ethereumjs/ethereumjs-vm 其实这就是怎么自己使用该模块来生成一个类似geth客户端的以太坊虚拟机,然后进行各类区块链操作 SYNOPSIS概要 Implements Ethereum's VM in Javascript.用Javascr
阅读全文
摘要:1.设置账户: ethereumjs-vm/examples/run-transactions-complete/key-pair.json 2.设置的要运行的交易: ethereumjs-vm/examples/run-transactions-complete/raw-tx1.json 上面这个
阅读全文
摘要: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('me
阅读全文
摘要:https://github.com/ethereumjs/merkle-patricia-tree SYNOPSIS概要 This is an implementation of the modified merkle patricia tree as specified in the Ether
阅读全文
摘要:https://github.com/ethereumjs/ethereumjs-account Encoding, decoding and validation of Ethereum's Account schema 以太坊账户概要的编码、解码和验证 账户 = 账户address + 账户状态
阅读全文