Skip to content
Snippets Groups Projects

feat: Can choose between ed25519 ans sr25519

Merged poka requested to merge choose-ed25519 into master
Compare and
13 files
+ 1245
294
Compare changes
  • Side-by-side
  • Inline
Files
13
+ 22
10
@@ -5,7 +5,7 @@ Some Ğcli commands require to have an address configured (for example to get ac
```sh
# save Alice address to config file
gcli -S predefined -s Alice config save
gcli -S predefined -s Alice -c sr25519 config save
# show config
gcli config show
@@ -46,10 +46,9 @@ Here is an example that:
* makes a transfer from selected Address
```sh
# add a new secret to the vault using substrate uri
gcli vault import
# add a new secret to the vault using substrate uri and crypto scheme sr25519
gcli vault import -c sr25519
# [stdout]
# gcli vault import
# Substrate URI can be a mnemonic or a mini-secret ('0x' prefixed seed) together with optional derivation path
# > Substrate URI: ********
#
@@ -159,8 +158,9 @@ gcli --help
# Options:
# -i, --indexer <INDEXER> Overwrite indexer endpoint
# --no-indexer Do not use indexer
# -s, --secret <SECRET> Secret key or BIP39 mnemonic (only used when secret format is compatible) (eventually followed by derivation path)
# -S, --secret-format <SECRET_FORMAT> Secret key format (seed, substrate, g1v1)
# -s, --secret <SECRET> Secret key or BIP39 mnemonic (only used when secret format is compatible) (eventually followed by derivation path)
# -c, --crypto-scheme <CRYPTO_SCHEME> Crypto scheme to use (sr25519, ed25519) [default: ed25519]
# -a <ADDRESS> SS58 Address
# -v <NAME> Name of an SS58 Address in the vault
# -u, --url <URL> Overwrite duniter websocket RPC endpoint
@@ -203,20 +203,32 @@ gcli vault derive --help
# [stdout]
# Add a derivation to an existing SS58 Address.
#
# Only "sr25519" crypto scheme is supported for derivations.
#
# Both "sr25519" and "ed25519" crypto schemes are supported
#
# Use command `vault list base` to see available <Base> account and their crypto scheme
# And then use command 'vault list for' to find all accounts linked to that <Base> account.
# And then use command 'vault list for' to find all accounts linked to that <Base> account
#
# Usage: gcli vault derive <-a <ADDRESS>|-v <NAME>>
# Usage: gcli vault derive [OPTIONS] <-a <ADDRESS>|-v <VAULT_NAME>>
#
# Options:
# -a <ADDRESS>
# SS58 Address
#
# -v <NAME>
# -v <VAULT_NAME>
# Name of an SS58 Address in the vault
#
# -d, --derivation-path <DERIVATION_PATH>
# Derivation path (non-interactive mode)
#
# -p, --password <PASSWORD>
# Password to decrypt the <Base> account key (non-interactive mode)
#
# --no-password
# Use empty password to decrypt the <Base> account key (non-interactive mode)
#
# -n, --name <NAME>
# Name for the wallet entry (non-interactive mode) - "" empty string will be considered as None
#
# -h, --help
# Print help (see a summary with '-h')
```
\ No newline at end of file
Loading