ethereumjs/ethereumjs-vm-1-简介】的更多相关文章

http://www.cnblogs.com/yuzhaoxin/p/4083612.html block_dump Linux 内核里提供了一个 block_dump 参数用来把 block 读写(WRITE/READ)状况转存(dump)到日志里,这样可以通过 dmesg 命令来查看. 该参数表示是否打开Block Debug模式,用于记录所有的读写及Dirty Block写回动作. 缺省设置:0,表示禁用Block Debug 将这个值设置为非零值,则在dmesg里记录各进程的block…
转载请注明出处 http://blog.csdn.net/pony_maggie/article/details/44999175 作者:小马 VisualVM 是一款免费的性能分析工具.它通过 jvmstat.JMX.SA(Serviceability Agent)以及 Attach API 等多种方式从程序运行时获得实时数据,从而进行动态的性能分析.它最主要的功能是监控内存泄露,跟踪垃圾回收,执行时内存.cpu分析,线程分析等. 通过实际的例子来说明.第一步我们要安装viual VM, 比较…
好久没有到博客写文章了,9月份开学有点忙,参加了一个上海的一个CHINA SIG信息比赛,前几天又无锡南京来回跑了几趟,签了阿里巴巴的安全工程师,准备11月以后过去实习,这之前就好好待在学校学习了. 这段时间断断续续把<加密与解码 第三版>给看完了,虽然对逆向还是一知半解,不过对VMP虚拟机加壳这块有了一点新的认识.这里分享一些笔记和想法,没有新的东西,都是书上还KSSD里看来的,权当笔记和分享,大神勿喷. 准备分成3部分讲一下 1. VM虚拟机简介 2. VM虚拟指令和x86汇编的映射原理…
由异常掉电问题---谈xfs文件系统 本文皆是作者自己的学习总结或感悟(linux环境),如有不对,欢迎提出一起探讨!! 目录结构 一.相关知识 二.问题提出 三.处理方法 四.最终结果 一.相关知识 1.xfs文件系统(概念性知识网上很多,自己去查喽) 文件系统的定义: 文件系统是操作系统用于明确存储设备(常见的是磁盘,也有基于NAND Flash的固态硬盘)或分区上的文件的方法和数据结构:即在存储设备上组织文件的方法. xfs文件系统: 是一个日志型文件系统 日志文件系统?加一个日志来记录文…
vm.$attrs简介 首先我们来看下vue官方对vm.$attrs的介绍: 包含了父作用域中不作为 prop 被识别 (且获取) 的特性绑定 (class 和 style 除外).当一个组件没有声明任何 prop 时,这里会包含所有父作用域的绑定 (class 和 style 除外),并且可以通过 v-bind="$attrs" 传入内部组件--在创建更高层次的组件时非常有用.   场景 vue中一个比较令人烦恼的事情是属性只能从父组件传递给子组件.这也就意味着当你想向嵌套层级比较深…
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…
根据代码发现还要了解的模块有: ethereumjs/merkle-patricia-tree -对应数据存储的数据结构 ethereumjs-blockchain —— 区块链 ethereumjs-block ——区块 levelup —— 数据库ethereumjs-account ——账户状态 在本博客的ethereumjs分类中可见他们的学习文档 其实这就是怎么自己使用各个模块来生成一个类似geth客户端的以太坊虚拟机,然后进行各类区块链操作.然后上面的每个模块对应的就是实现这个虚拟机…
https://github.com/ethereumjs/ethereumjs-blockchain/tree/master/test 'use strict' const test = require('tape') const Blockchain = require('..') const Block = require('ethereumjs-block') const Common = require('ethereumjs-common') const async = requir…
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-tx A simple module for creating, manipulating and signing ethereum transactions 安装: npm install ethereumjs-tx --save example: const EthereumTx = require('ethereumjs-tx') const privateKey = Buffer.from('e331b6d…
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-vm/blob/master/docs/stateManager.md StateManager 要与本博客的ethereumjs/ethereumjs-account-1-简介和API结合学习,然后你就能够发现StateManager其实就是得到账户中的值.账户 = 账户地址address + 账户状态(有nonce,balance,stateRoot,codeHash).下面的方法得到或处理的就是账户中对应的这…
之前可以先了解一下另一个模块,看本博客的ethereumjs/ethereumjs-common部分内容 通过tests测试文件能够帮助更好了解API的使用 ethereumjs-block/tests/header.js const tape = require('tape') const Common = require('ethereumjs-common') const utils = require('ethereumjs-util') const rlp = utils.rlp co…
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/ethereumjs-block/blob/master/docs/index.md 详细的调用代码可见本博客的ethereumjs/ethereumjs-block-3-tests 1.Block区块 Creates a new block object创建一个区块对象 Parameters输入参数 data (Array | Buffer | Object) 相关数据 opts Array Options 选项 opts.chain…
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…
https://github.com/ethereumjs/ethereumjs-account Encoding, decoding and validation of Ethereum's Account schema 以太坊账户概要的编码.解码和验证 账户 = 账户address + 账户状态 这个库处理的是账户状态,然后将账户address作为key,账户状态作为value,添加到state前缀树中,即生成了一个账户 SYNOPSIS概要 This library eases the h…
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…
查看test能够让你更好滴了解其API文档的使用 ethereumjs-common/tests/chains.js const tape = require('tape') const Common = require('../index.js') tape('[Common]: Initialization / Chain params', function (t) { t.test('Should initialize with chain provided', function (st)…
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…
本文主要讲述dicom标准及dicom通讯的工作方式.dicom全称医学数字图像与通讯 其实嘛就两个方面 那就是“存储”跟“通讯”. 文件数据组织方式  网络数据组织方式.文件数据组织方式就是解析静态的dicom文件 在 <dicom格式文件解析器>一文中已经阐述过了 就不再说了.网络数据组织方式 简而言之就是各种协议 命令控制 数据序列化.那么这一章中我们将会讲他,但是进行实际操作将在后面几章. 又一篇详尽的Dicom协议介绍: http://blog.csdn.net/zssureqh/a…
GitHub Android Libraries Top 100 简介 排名完全是根据 GitHub 搜索 Java 语言选择 (Best Match) 得到的结果, 然后过滤了跟 Android 不相关的项目, 所以排名并不具备任何官方效力, 仅供参考学习, 方便初学者快速了解当前一些流行的 Android 开源库. 项目名称 项目简介 1. react-native 这 个是 Facebook 在 React.js Conf 2015 大会上推出的基于 JavaScript 的开源框架 Re…
Struts2核心技术简介 使用Struts2框架,只要注重以下三大元素:配置文件.映射文件和Action: 全局属性文件struts.properties:保存系统运行的一些参数变量,整个系统只有一个属性文件: 映射文件struts.xml:用于配置请求映射的Action和拦截器,可以有多个映射文件: 业务控制器Action:可以使用POJO(类似JavaBean)类,也可以集成ActionSupport,在该类中不仅可以取得表单数据,还可以取得上下文变量.以下是详细说明: 1.全局属性文件s…