mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-05-06 23:08:03 +00:00
9f3b4468db
* Make subkey support Sr25519 crypto. * Rebuild runtime. * Build and rejig locks. * Fix grumbles * Derivations * Introduce tests
56 lines
1.6 KiB
YAML
56 lines
1.6 KiB
YAML
name: subkey
|
|
author: "Parity Team <admin@parity.io>"
|
|
about: A substrate key utility
|
|
args:
|
|
- ed25519-legacy:
|
|
short: o
|
|
long: legacy
|
|
help: Use legacy, outdated Ed25519 cryptography
|
|
takes_value: false
|
|
- ed25519:
|
|
short: e
|
|
long: ed25519
|
|
help: Use Ed25519/BIP39 cryptography
|
|
takes_value: false
|
|
- sr25519:
|
|
short: s
|
|
long: sr25519
|
|
help: Use Schnorr/Ristretto x25519/BIP39 cryptography
|
|
takes_value: false
|
|
- password:
|
|
short: p
|
|
long: password
|
|
takes_value: true
|
|
required: false
|
|
help: The password for the key
|
|
subcommands:
|
|
- generate:
|
|
about: Generate a random account
|
|
- restore:
|
|
about: Gets a public key and a SS58 address from the provided seed phrase
|
|
args:
|
|
- seed:
|
|
index: 1
|
|
required: true
|
|
help: 32 bytes long seed phrase used to restore the public key. If the provided seed is shorter than that, then
|
|
it will be right-padded with 0x20 bytes (ASCII space). If the provided seed is longer than
|
|
32 bytes then seed will be truncated.
|
|
- vanity:
|
|
about: Generate a seed that provides a vanity address
|
|
args:
|
|
- pattern:
|
|
index: 1
|
|
help: Desired pattern
|
|
- number:
|
|
short: n
|
|
long: number
|
|
help: Number of keys to generate
|
|
takes_value: true
|
|
default_value: "1"
|
|
- query:
|
|
about: Query an account by its seed
|
|
args:
|
|
- seed:
|
|
index: 1
|
|
help: The 0x prefixed seed
|