ethereumjs/ethereumjs-block-1-简介

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-block

BROWSER浏览器

This module work with browserify.该模块使用browserify

API

看本博客的ethereumjs/ethereumjs-block-2-api

TESTING测试

Tests in the tests directory are partly outdated and testing is primarily done by running the BlockchainTests from within the ethereumjs-vm repository.

tests目录中的测试部分已经过时了,测试主要是通过运行在ethereumjs-vm存储库中的BlockchainTests实例来完成的(看本博客ethereumjs/ethereumjs-vm-4-tests-BlockchainTestsRunner

Relevant test folders:相关的测试文件夹

  • bcTotalDifficultyTest
  • TODO

 

猜你喜欢

转载自www.cnblogs.com/wanghui-garcia/p/10087714.html