Open7

ICP

hrichiihrichii

Internet Computer

クラウドコンピューティング機能の提供を目指す次世代のブロックチェーン

従来

ブロックチェーンはデータ処理のみ、DAppはクラウドサービス

IC

(- 従来 ブロックチェーンの機能)

  • より大きな容量のデータを保存 <-これなぜ?
  • DAppの実行環境の提供
hrichiihrichii

dfx cli

1. インストール

$ sh -ci "$(curl -fsSL https://internetcomputer.org/install.sh)"
This path will then be added to your PATH environment variable by
modifying the profile files located at:

   /Users/xxxx/.profile
   /Users/xxxx/.zshenv

Current installation options:

            dfx version: latest
   modify PATH variable: yes

Proceed with installation?: Proceed with installation (default)
dfxvm is installed now.

To get started you may need to restart your current shell.
This would reload your PATH environment variable to include
the dfxvm bin directory.

To configure your shell, run:
  source "$HOME/Library/Application Support/org.dfinity.dfx/env"

exit
$ cat /Users/xxxx/.zshenv
. "$HOME/Library/Application Support/org.dfinity.dfx/env"
$ source "$HOME/Library/Application Support/org.dfinity.dfx/env"
$ dfx --version
dfx 0.24.3

https://internetcomputer.org/docs/current/developer-docs/getting-started/install

2. 開発者アイデンティティの作成

開発者ID

  • ユーザー
  • キャニスターのコントローラー
  • プリンシパル(ネットワーク上のエンティティ識別用)

自分の ID のプリンシパルをそのプロジェクトのキャニスターのコントローラーとして追加
サイクルを使って料金を払う

$ dfx identity new xxxx
$ dfx identity use xxxx
$ dfx identity get-principal

https://internetcomputer.org/docs/current/developer-docs/getting-started/identities

3. トークンとサイクルの使用

3種類のトークン資産

  • ICPトークン サイクルに変換してキャニスターのリソース消費の支払いに使用
  • サイクル
  • ICRC トークン