@@ -52,7 +52,7 @@ dotnet restore
5252dotnet build --no-restore
5353dotnet test --no-build
5454dotnet pack --no-build Src/ConsoleTool/CsCli.ConsoleTool.csproj -o nupkg -c Release
55- dotnet tool install --global --add-source ./nupkg cscli --version 0.0.5 -local-branch.1
55+ dotnet tool install --global --add-source ./nupkg cscli --version 0.0.6 -local-branch.1
5656```
5757</details >
5858
@@ -63,8 +63,9 @@ dotnet tool install --global --add-source ./nupkg cscli --version 0.0.5-local-br
6363### Overview and Help
6464``` console
6565$ cscli --help
66- cscli v0.0.5
66+ cscli v0.0.6
6767A cross-platform tool for building and interacting with Cardano wallet primitives (i.e. recovery-phrases, keys, addresses and transactions).
68+ Please see https://github.com/CardanoSharp/cscli from more detailed documentation.
6869
6970USAGE: cscli (OPTION | COMMAND)
7071
@@ -80,13 +81,17 @@ Available commands:
8081 wallet key policy derive --recovery-phrase "<string>" [--language <language>] [--passphrase "<string>"] [--policy-index <derivation-index>] [--verification-key-file <string>] [--signing-key-file <string>]
8182 wallet address stake derive --recovery-phrase "<string>" --network-type <network-type> [--language <language>] [--passphrase "<string>"] [--account-index <derivation-index>] [--address-index <derivation-index>]
8283 wallet address payment derive --recovery-phrase "<string>" --network-type <network-type> --payment-address-type <payment-address-type> [--language <language>] [--passphrase "<string>"] [--account-index <derivation-index>] [--address-index <derivation-index>] [--stake-account-index <derivation-index>] [--stake-address-index <derivation-index>]
84+ bech32 encode --value "<hex_string>" --prefix "<string>"
85+ bech32 decode --value "<bech32_string>"
86+ blake2b hash --value "<hex_string>" --length <digest_length>
8387
8488Arguments:
8589 <size> ::= 9 | 12 | 15 | 18 | 21 | 24(default)
8690 <language> ::= english(default)|chinesesimplified|chinesetraditional|french|italian|japanese|korean|spanish|czech|portuguese
8791 <derivation-index> ::= 0(default) | 1 | .. | 2147483647
8892 <network-type> ::= testnet | mainnet
8993 <payment-address-type> ::= enterprise | base
94+ <digest_length> ::= 160 | 224 | 256 | 512
9095```
9196
9297### Generate Recovery Phrase
@@ -247,5 +252,23 @@ $ cat policy_0.vkey
247252```
248253</details >
249254
255+ ### Bech32 Decode
256+ ``` console
257+ $ cscli bech32 decode --value " $( cat pay_0_0.addr) "
258+ 61282e5ee5d1e89e04fa81382df239d6733409875d75b480c879f58600
259+ ```
260+
261+ ### Bech32 Encode
262+ ``` console
263+ $ cscli bech32 encode --value 61282e5ee5d1e89e04fa81382df239d6733409875d75b480c879f58600 --prefix addr
264+ addr1vy5zuhh9685fup86syuzmu3e6eengzv8t46mfqxg086cvqqrukl6w
265+ ```
266+
267+ ### Blake2b Hash
268+ ``` console
269+ $ cscli blake2b hash --length 224 --value 1872bc5ecc95b419de3f72544a6656ceb9a813755544618bb6b4dcc230ed9721
270+ 9df9179beb0ce89f84025e02ae11c18b3003e7690149caa662fafd01
271+ ```
272+
250273## Contributing
251- Please see [ CONTRIBUTING.md] ( ./CONTRIBUTING.md )
274+ Please see [ CONTRIBUTING.md] ( ./CONTRIBUTING.md )
0 commit comments