-
Notifications
You must be signed in to change notification settings - Fork 66
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #254 from onflow/release/v21
Version 0.21.0
- Loading branch information
Showing
46 changed files
with
655 additions
and
244 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,49 @@ | ||
--- | ||
title: Decode Account Key with the Flow CLI | ||
sidebar_title: Decode Account Keys | ||
description: How to decode rlp encoded key pair from the command line | ||
--- | ||
|
||
The Flow CLI provides a command to decode RLP encoded account key. | ||
|
||
```shell | ||
flow keys decode <rlp encoded account key> | ||
``` | ||
|
||
## Example Usage | ||
|
||
```shell | ||
> flow keys decode f847b84084d716c14b051ad6b001624f738f5d302636e6b07cc75e4530af7776a4368a2b586dbefc0564ee28384c2696f178cbed52e62811bcc9ecb59568c996d342db2402038203e8 | ||
|
||
Public Key 84d716c14b051ad6b001624f738f5d302636e6b07cc75e4530af7776a4368a2b586dbefc0564ee28384c2696f178cbed52e62811bcc9ecb59568c996d342db24 | ||
Signature algorithm ECDSA_P256 | ||
Hash algorithm SHA3_256 | ||
Weight 1000 | ||
Revoked false | ||
``` | ||
|
||
## Flags | ||
|
||
### 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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,72 @@ | ||
## ⬆️ Install or Upgrade | ||
|
||
Follow the [Flow CLI installation guide](https://docs.onflow.org/flow-cli/install/) for instructions on how to install or upgrade the CLI. | ||
|
||
|
||
## 💥 Breaking Changes | ||
|
||
### Flow Go SDK Update | ||
Update Flow Go SDK version from v0.19.0 to v0.20.0. | ||
Read more about new version in the [release notes](https://github.com/onflow/flow-go-sdk/releases/tag/v0.20.0). | ||
|
||
## ⭐ Features | ||
|
||
### New Command To Manage Configuration | ||
Add or remove resources from the configuration using the new `flow config` command. | ||
Usage is possible via interactive prompt or by using flags. Command syntax is as follows: | ||
```js | ||
flow config <add|remove> <account|contract|deployment|network> | ||
``` | ||
|
||
Example for adding an account to the config via interactive prompt: | ||
|
||
```bash | ||
Name: Foo | ||
Address: f8d6e0586b0a20c7 | ||
✔ ECDSA_P256 | ||
✔ SHA3_256 | ||
Private key: 1286...01afc | ||
Key index (Default: 0): 0 | ||
|
||
Account Foo added to the configuration | ||
``` | ||
|
||
Example for adding an account to the config without interactive prompt: | ||
|
||
```bash | ||
./main config add account --address f8d6e0586b0a20c7 --name Foo --private-key 1286...01afc | ||
|
||
Account Foo added to the configuration | ||
``` | ||
|
||
We recommend using manage command to do any changes in the configuration as it will also | ||
validate input values for you and will abstract any changes in the configuration format. | ||
|
||
### Decode Keys | ||
Command for decoding public keys in the RLP encoded format. | ||
|
||
Example of using the command: | ||
|
||
```bash | ||
> flow keys decode f847b84084d716c14b051ad6b001624f738f5d302636e6b07cc75e4530af7776a4368a2b586dbefc0564ee28384c2696f178cbed52e62811bcc9ecb59568c996d342db2402038203e8 | ||
|
||
Public Key 84d716c14b051ad6b001624f738f5d302636e6b07cc75e4530af7776a4368a2b586dbefc0564ee28384c2696f178cbed52e62811bcc9ecb59568c996d342db24 | ||
Signature algorithm ECDSA_P256 | ||
Hash algorithm SHA3_256 | ||
Weight 1000 | ||
Revoked false | ||
``` | ||
|
||
## 🎉 Improvements | ||
|
||
### Include And Exclude Flags | ||
Include and Exclude flags were added to the transaction and account resource thus | ||
allowing you to further specify verbosity of the output. | ||
|
||
### Documentation Changes | ||
Multiple reported documentation fixes. | ||
|
||
## 🐞 Bug Fixes | ||
|
||
### Import Detection Fix | ||
Fix for a reported bug: An error occurs when executing a script that imports a built-in contract (Crypto contract) with Flow CLI command. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.