Creating keys and addresses キーとアドレスの生成(編集中)

徒然草2.0

原文:https://docs.cardano.org/projects/cardano-node/en/latest/stake-pool-operations/keys_and_addresses.html#payment-address

Creating keys and addresses
キーとアドレスの作成
In the Shelley era of Cardano, every stakeholder can have two sets of keys and addresses:
カルダノのシェリー時代では、すべての利害関係者が2組のキーとアドレスを持つことができます。

Payment Keys and addresses: To send and receive transactions
支払いキーとアドレス:トランザクションを送受信するには

Stake Keys and addresses: To control protocol participation, create a stake pool, delegate and receive rewards.
ステークキーとアドレス:プロトコルの参加を制御するには、ステークプールを作成し、委任して報酬を受け取ります。

Payment key pair 支払いキーペア
To generate a payment key pair: 支払いキーペアを生成するには:

cardano-cli shelley address key-gen \
--verification-key-file payment.vkey \
--signing-key-file payment.skey

This creates two files (payment.vkey and payment.skey), one containing the public verification key, one the private signing key.
これにより、2つのファイル(payment.vkeyとpayment.skey)が作成されます。1つは公開検証鍵を含み、もう1つは秘密署名鍵を含みます。

Legacy key レガシーキー
To generate Byron-era _payment key:バイロン時代の_paymentキーを生成するには:

Payment key files use the following format:
支払いキーファイルは次の形式を使用します。

{
    "type": "PaymentSigningKeyByron_ed25519_bip32",
    "description": "Payment Signing Key",
    "cborHex": "hex-here"
}
Where the hex-here is generated as 0x5880 | xprv | pub | chaincode

Stake key pair ステークキーのペア
To generate a stake key pair : ステークキーを生成するには:

cardano-cli shelley stake-address key-gen \
--verification-key-file stake.vkey \
--signing-key-file stake.skey

Stake address ステークアドレス
To generate a stake address: ステークアドレスの作成

cardano-cli shelley stake-address build \
--stake-verification-key-file stake.vkey \
--out-file stake.addr \
--mainnet

This address CAN’T receive payments but will receive the rewards from participating in the protocol.
このアドレスは支払いを受けることはできませんが、プロトコルへの参加から報酬を受け取ります。

Query the balance of an address
アドレスの残高を照会する
NOTE: Ensure that your node has synced to the current block height which can be checked at explorer.cardano.org. If it is not, you may see an error referring to the Byron Era.
注:ノードがexplorer.cardano.orgで確認できる現在のブロックの高さに同期していることを確認してください。そうでない場合、バイロン時代を参照するエラーが表示されることがあります。

To query the balance of an address we need a running node and the environment variable CARDANO_NODE_SOCKET_PATH set to the path to the node.socket:
アドレスのバランスを照会するには、実行中のノードと、node.socketへのパスに設定された環境変数CARDANO_NODE_SOCKET_PATHが必要です。

cardano-cli shelley query utxo \
--address $(cat payment.addr) \
--mainnet
                            TxHash                                 TxIx        Lovelace
--------------------------------------------------------------------------------------------

Note–mainnet identifies the Cardano mainnet, for testnets use –testnet-magic 1097911063 instead.
注–mainnetはCardanoメインネットを識別します。テストネットの場合は、代わりに–testnet-magic 1097911063を使用してください。

徒然草2.0
スポンサーリンク
シェアする
gomiryoをフォローする
ごみぶろぐ

コメント

タイトルとURLをコピーしました