0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

Derive Public Key

Last updated at Posted at 2024-12-15

Previous << Decode Public Keys
Next >> Start Emulator

Flow CLIは、秘密鍵から公開鍵を導出するコマンドを提供しています。

flow keys derive <private key>

Example Usage

Derive Public Key from a Private Key

> flow keys derive c778170793026a9a7a3815dabed68ded445bde7f40a8c66889908197412be89f

Example response

> flow keys generate

🔴️ Store Private Key safely and don't share with anyone! 
Private Key     c778170793026a9a7a3815dabed68ded445bde7f40a8c66889908197412be89f 
Public Key 	    584245c57e5316d6606c53b1ce46dae29f5c9bd26e9e8...aaa5091b2eebcb2ac71c75cf70842878878a2d650f7

Arguments

Private Key

  • Name: private key
  • Valid inputs: valid private key content

Flags

Signature Algorithm

  • Flag: --sig-algo
  • Valid inputs: "ECDSA_P256", "ECDSA_secp256k1"

キーペアのECDSA署名アルゴリズムを指定します。

Flowでは、secp256k1とP-256曲線をサポートしています。

Filter

  • Flag: --filter
  • Short Flag: -x
  • Valid inputs: a case-sensitive name of the result property.

結果から、唯一の値として取得したいプロパティの名前を指定します。

Output

  • Flag: --output
  • Short Flag: -o
  • Valid inputs: json, inline

コマンド結果のフォーマットを指定します。

Save

  • Flag: --save
  • Short Flag: -s
  • Valid inputs: a path in the current filesystem.

結果を保存したいファイル名を指定してください。

Last updated on Dec 6, 2024 by Alex Ni

翻訳元


Previous << Decode Public Keys

Flow BlockchainのCadence version1.0ドキュメント (Derive Public Key)

Next >> Start Emulator

0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?