基于区块链的毕业设计Use IPFS to explore the Ethereum Blockchain – 使用IPFS探索以太坊区块链

本文提供基于区块链的毕业设计国外最新区块链项目源码下载,包括solidity,eth,fabric等blockchain区块链,基于区块链的毕业设计Use IPFS to explore the Ethereum Blockchain – 使用IPFS探索以太坊区块链 是一篇很好的国外资料

Use IPFS to explore the Ethereum Blockchain

This is a pre-example to a full Ethereum to IPFS bridge. It shows how to resolve Ethereum hashes through the IPFS DAG get API.

Before you start

First clone this repo, install dependencies in the project root and build the project.

$ git clone https://github.com/ipfs/js-ipfs.git $ cd js-ipfs $ npm install $ npm run build

Running the example

Make sure to have the latest js-ipfs installed by doing

> npm install ipfs -g

If this is the first time you use js-ipfs, make sure to init your repo with

> jsipfs init

Load ethereum chain data into ipfs

We’ve some ethereum blocks available at eth-stuffs folder, you can add them to ipfs by running:

> ./load-eth-stuffs.sh bagiacgzah24drzou2jlkixpblbgbg6nxfrasoklzttzoht5hixhxz3rlncyq bagiacgzanm7fiqpp7zcfehhd7apxpo4stdxx7wxn7eqrsgolj76t22dintgq bagiacgzau7z2cpinv6u3rnsa73ssc46cpongn7zh6ztjwo7hh7ao42cj4lha baglacgzaoc2jzhhxe6psrvq4ixlykpky2a23e3ltnhqpjrji3uyg6rnulxpq baglacgza2vwiqlrqgkz5jdpkzmkqznntozcnnoycn4swddtxi7njcjsmfpda baglacgza2vwiqlrqgkz5jdpkzmkqznntozcnnoycn4swddtxi7njcjsmfpda baglacgzar5mhc23wfjccxfkpf23kbufqqjsqg4t7btaocaraycwlxbaerq2q baglacgzasflr3hpssk5fpdheemyogi4df2zatql5z3pp7izau7d37ryijgca baglacgzae6kz4xubhfygknh7yqk2fbk4xztmnvwkwm36knjwukmyfepjveda baglacgzalfkeokwk7nvwenmr2k3e3f6khvch2bw54nhr25vjmjy2lshmx5mas

Explore these blocks using the DAG API

NOTE: Currently your js-ipfs daemon must NOT be running for the following examples to work.

Some examples

> jsipfs dag get bagiacgzah24drzou2jlkixpblbgbg6nxfrasoklzttzoht5hixhxz3rlncyq/ > jsipfs dag get bagiacgzah24drzou2jlkixpblbgbg6nxfrasoklzttzoht5hixhxz3rlncyq/parentHash ...

,将以太坊eth链数据加载到IPFS

这是一个完整以太坊eth到IPFS网桥的示例。它展示了如何通过IPFS DAG get API解析以太坊eth散列

使用DAG API浏览这些区块

首先克隆此repo,在项目根目录中安装依赖项并构建项目

$ git clone https://github.com/ipfs/js-ipfs.git $ cd js-ipfs $ npm install $ npm run build

Running the example

确保安装了最新的js ipfs,如果这是您第一次使用js ipfs,请确保使用eth stuff文件夹中的一些以太坊eth块初始化您的回购,您可以通过运行以下命令将它们添加到ipfs中:

> npm install ipfs -g

注意:当前您的js ipfs守护进程不能运行,以下示例才能正常工作

> jsipfs init

Load ethereum chain data into ipfs

一些示例在开始运行示例之前,使用IPFS浏览以太坊eth区块链blockchain

,将以太坊eth链数据加载到IPFS

使用DAG API浏览这些区块

> ./load-eth-stuffs.sh bagiacgzah24drzou2jlkixpblbgbg6nxfrasoklzttzoht5hixhxz3rlncyq bagiacgzanm7fiqpp7zcfehhd7apxpo4stdxx7wxn7eqrsgolj76t22dintgq bagiacgzau7z2cpinv6u3rnsa73ssc46cpongn7zh6ztjwo7hh7ao42cj4lha baglacgzaoc2jzhhxe6psrvq4ixlykpky2a23e3ltnhqpjrji3uyg6rnulxpq baglacgza2vwiqlrqgkz5jdpkzmkqznntozcnnoycn4swddtxi7njcjsmfpda baglacgza2vwiqlrqgkz5jdpkzmkqznntozcnnoycn4swddtxi7njcjsmfpda baglacgzar5mhc23wfjccxfkpf23kbufqqjsqg4t7btaocaraycwlxbaerq2q baglacgzasflr3hpssk5fpdheemyogi4df2zatql5z3pp7izau7d37ryijgca baglacgzae6kz4xubhfygknh7yqk2fbk4xztmnvwkwm36knjwukmyfepjveda baglacgzalfkeokwk7nvwenmr2k3e3f6khvch2bw54nhr25vjmjy2lshmx5mas

Explore these blocks using the DAG API

NOTE: Currently your js-ipfs daemon must NOT be running for the following examples to work.

Some examples

> jsipfs dag get bagiacgzah24drzou2jlkixpblbgbg6nxfrasoklzttzoht5hixhxz3rlncyq/ > jsipfs dag get bagiacgzah24drzou2jlkixpblbgbg6nxfrasoklzttzoht5hixhxz3rlncyq/parentHash ...

部分转自网络,侵权联系删除区块链源码网

www.interchains.cc

https://www.interchains.cc/23172.html

区块链毕设网(www.interchains.cc)全网最靠谱的原创区块链毕设代做网站 部分资料来自网络,侵权联系删除! 最全最大的区块链源码站 ! QQ3039046426
区块链知识分享网, 以太坊dapp资源网, 区块链教程, fabric教程下载, 区块链书籍下载, 区块链资料下载, 区块链视频教程下载, 区块链基础教程, 区块链入门教程, 区块链资源 » 基于区块链的毕业设计Use IPFS to explore the Ethereum Blockchain – 使用IPFS探索以太坊区块链

提供最优质的资源集合

立即查看 了解详情