Sunrise Data

Sunrise Dataは、L2チェーンをSunrise DAレイヤーに接続するリレーサーバーとして機能します。

Sunriseコンセンサスノード

動作には、ネットワーク化されたSunriseノードが必要です。Sunrise v0.3.0以降を実行しているネットワークは、データ可用性レイヤーをサポートしています。

コンセンサスノードの作成方法については、ノードガイドに従ってください。

sunrise-dataの設定方法

  1. sunrisedを実行します。設定については、コンセンサスノードを参照してください。

  2. sunrise-dataリポジトリをクローンします。

    cd ~
    git clone https://github.com/sunriselayer/sunrise-data.git
    cd sunrise-data
    make install
  3. config.tomlを作成して編集します。

    cp config.default.toml config.toml
    nano config.toml

    ローカルのIPFSデーモンに接続するには、ipfs_api_urlフィールドを空のままにします。

    home_path.sunriseディレクトリに、publisher_accountをsunrisedキーの名前に変更します。

    [api]
    port = 8000
    ipfs_api_url = ""
    ipfs_addrinfo = ""
    
    [chain]
    address_prefix="sunrise"
    home_path="/home/ubuntu/.sunrise"
    keyring_backend="test"
    sunrised_rpc="http://localhost:26657"
    
    [publish]
    publisher_account="your_publisher_account"
    publish_fees="10000uusdrise"
    
    [rollkit]
    port=7980
    data_shard_count=5
    parity_shard_count=5

home_pathkeyring_backendpublisher_accountは、sunrisedキーリングで入力された値でなければなりません。ローカルキーペアのドキュメントを参照し、--keyring-backend testオプションで設定してください。home_pathには、sunriseキーリングが存在するパスを入力してください。sunrised_rpcについては、ローカルでsunrisedを実行することが望ましいですが、不可能な場合は公開されているRPCを使用してください。私たちのネットワークドキュメントを参照してください。このような場合でも、ローカルキーペアは必要です。

その他のフィールドはそのままにしておくことができます。

ローカルでIPFSを実行する

  1. IPFSを実行します。

    wget https://dist.ipfs.tech/kubo/v0.31.0/kubo_v0.31.0_linux-amd64.tar.gz
    tar -xvzf kubo_v0.31.0_linux-amd64.tar.gz
    cd kubo
    sudo ./install.sh
    ipfs init --profile=lowpower
    ipfs daemon
  2. IPFSノードIDを確認し、オプションでリモートピアを共有して追加します。

    ipfs id

開始

sunrise-data rollkit

最終更新