马克尔树 静态Merkle树的幼稚实现。 用法 安装辅件 yarn 可用命令 # Run demo $ yarn demo # Run tests $ yarn test 例子: import { MerkleTools } from './src' ; const data = [ 'A' , 'B' , 'C' , 'D' ] ; const { createMerkleTree , validateProof } = MerkleTools ( ) ; const tree = createMerkleTree ( data ) ; console . dir ( { root : tree . root ( ) , height : tree . height ( ) , level : tree . level ( 1 ) , proof