在线时间:8:00-16:00
迪恩网络APP
随时随地掌握行业动态
扫描二维码
关注迪恩网络微信公众号
开源软件名称:MrChico/verifyIPFS开源软件地址:https://github.com/MrChico/verifyIPFS开源编程语言:Solidity 100.0%开源软件介绍:verifyIPFSSmart contract library functions for recreating the hash of an ipfs object given its content. UsageAdd the data file to IPFS:
Will return:
Now try the same thing with the (truffle console)
returns
Functions:
Limitations:Does not work for IPFS objects that are in several chunks. Contact me if you find an IPFS object in one chunk that does not work. Why this is useful:This allows you to store large data files on the blockchain by their IPFS hash instead of directly in contract storage. If you at a later point need any part of the data on the blockchain, you can submit it with a transaction, validate it cryptographically using this contract and then do your computations only referring to the contents of the IPFS object in memory! LicenseSee full MIT License including:
|
2023-10-27
2022-08-15
2022-08-17
2022-09-23
2022-08-13
请发表评论