js-ipfs-versidag:基于IPFS和IPLD之上的Merkle-DAG的并发版本历史记录

时间:2021-02-03 02:30:16
【文件属性】:
文件名称:js-ipfs-versidag:基于IPFS和IPLD之上的Merkle-DAG的并发版本历史记录
文件大小:84KB
文件格式:ZIP
更新时间:2021-02-03 02:30:16
history ipfs version concurrent merkle-dag ipfs-versidag 基于IPFS和IPLD之上的Merkle-DAG的并发版本历史记录。 该模块包装了并自动将readNode和writeNode配置为使用和 。 版本+ dag = versidag 安装 $ npm install ipfs-versidag 您还必须安装ipfs因为它是此模块的对等依赖项。 用法 import IPFS from 'ipfs' ; import createIpfsVersidag from 'ipfs-versidag' ; const ipfs = new IPFS ( ) ; ipfs . on ( 'ready' , async ( ) => { const myVersidag = createIpfsVersidag ( { ipfs , tieBreaker : ( node1 , node2 ) => /* */ , } ) ; const myVersidagA = await myVersidag . add ( 'Hi' , 1 ) ; const
【文件预览】:
js-ipfs-versidag-master
----.gitignore(45B)
----README.md(3KB)
----CHANGELOG.md(474B)
----test()
--------resolve.spec.js(819B)
--------unit.spec.js(4KB)
--------helpers()
----LICENSE(1KB)
----package.json(2KB)
----src()
--------index.js(1KB)
----.babelrc(155B)
----.travis.yml(135B)
----.editorconfig(220B)
----.eslintrc.json(213B)
----package-lock.json(339KB)

网友评论