Derive Public Key
The Flow CLI provides a command to derive Public Key from a Private Key.
Example Usage
Derive Public Key from a Private Key
Example response
Arguments
Private Key
- Name:
private key
- Valid inputs: valid private key content
Flags
Signature Algorithm
- Flag:
--sig-algo
- Valid inputs:
"ECDSA_P256", "ECDSA_secp256k1"
Specify the ECDSA signature algorithm for the key pair.
Flow supports the secp256k1 and P-256 curves.
Filter
- Flag:
--filter
- Short Flag:
-x
- Valid inputs: a case-sensitive name of the result property.
Specify any property name from the result you want to return as the only value.
Output
- Flag:
--output
- Short Flag:
-o
- Valid inputs:
json
,inline
Specify the format of the command results.
Save
- Flag:
--save
- Short Flag:
-s
- Valid inputs: a path in the current filesystem.
Specify the filename where you want the result to be saved