文件名称:merkle-tools:用于创建Merkle树,生成merkle证明以及验证merkle证明JavaScript工具
文件大小:27KB
文件格式:ZIP
更新时间:2024-02-22 07:47:58
cryptography bitcoin merkle hash merkle-tree
merkle工具 用于创建Merkle树,生成Merkle证明以及Merkle证明验证的工具。 安装 $ npm install --save merkle-tools 创建MerkleTools对象 var MerkleTools = require ( 'merkle-tools' ) var treeOptions = { hashType : 'md5' // optional, defaults to 'sha256' } // valid hashTypes include all crypto hash algorithms // such as 'MD5', 'SHA1', 'SHA224', 'SHA256', 'SHA384', 'SHA512' // as well as the SHA3 family of algorithms // including 'SHA3-224', 'SHA3-256', 'SHA3-384', and 'SHA3-512' var merkleTools = new MerkleTools ( treeOptions ) /
【文件预览】:
merkle-tools-master
----merkletools.d.ts(899B)
----yarn.lock(27KB)
----LICENSE(11KB)
----test()
--------main.js(25KB)
----README.md(8KB)
----merkletools.js(9KB)
----.gitignore(587B)
----package.json(807B)