【文件属性】:
文件名称:ethashjs:该项目正在积极开发中,已移至EthereumJS VM monorepo
文件大小:17KB
文件格式:ZIP
更新时间:2021-02-05 08:30:20
ethereum pow proof-of-work ethash EthereumJavaScript
概要
实施 。
安装
npm install ethashjs
用法
const Ethash = require ( 'ethashjs' )
const Block = require ( 'ethereumjs-block' )
const levelup = require ( 'levelup' )
const memdown = require ( 'memdown' )
var cacheDB = levelup ( '' , {
db : memdown
} )
var ethash = new Ethash ( cacheDB )
var validblockRlp
【文件预览】:
ethashjs-master
----.gitignore(51B)
----util.js(2KB)
----package.json(1KB)
----LICENSE(16KB)
----index.js(6KB)
----CHANGELOG.md(1KB)
----.github()
--------workflows()
----README.md(6KB)
----tests()
--------ethash.js(1KB)
--------index.js(45B)
--------ethash_tests.json(3KB)
--------block.js(8KB)
----example()
--------rawExample.js(710B)
--------example.js(274B)
----.prettierrc(49B)