1. 程式人生 > >ethereumjs/ethereumjs-block-1-簡介

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