mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-04-27 17:28:00 +00:00
d97775542a
* Add SECP256k1/ECDSA support for transaction signing. * Refactoring and fixes * Fix for contracts * Avoid breaking runtime host function * Build fixes, make subkey work more generaically. * Fix tests * Dedpulicate a bit of code, remove unneeded code, docs * Bump runtime version * Fix a test and clean up some code. * Derivation can derive seed. * Whitespace * Bump runtime again. * Update core/primitives/src/crypto.rs Co-Authored-By: Kian Paimani <5588131+kianenigma@users.noreply.github.com> * Update core/primitives/src/ecdsa.rs Co-Authored-By: Kian Paimani <5588131+kianenigma@users.noreply.github.com> * Fix AppVerify
145 lines
4.2 KiB
YAML
145 lines
4.2 KiB
YAML
name: subkey
|
|
author: "Parity Team <admin@parity.io>"
|
|
about: Utility for generating and restoring with Substrate keys
|
|
args:
|
|
- 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
|
|
- secp256k1:
|
|
short: k
|
|
long: secp256k1
|
|
help: Use SECP256k1/ECDSA/BIP39 cryptography
|
|
takes_value: false
|
|
- password:
|
|
short: p
|
|
long: password
|
|
takes_value: true
|
|
required: false
|
|
help: The password for the key
|
|
- network:
|
|
short: n
|
|
long: network
|
|
takes_value: true
|
|
required: false
|
|
help: Specify a network. One of substrate (default), polkadot, kusama, or dothereum.
|
|
subcommands:
|
|
- generate:
|
|
about: Generate a random account
|
|
args:
|
|
- words:
|
|
short: w
|
|
long: words
|
|
help: The number of words in the phrase to generate. One of 12 (default), 15, 18, 21 and 24.
|
|
takes_value: true
|
|
- inspect:
|
|
about: Gets a public key and a SS58 address from the provided Secret URI
|
|
args:
|
|
- uri:
|
|
index: 1
|
|
required: true
|
|
help: A Key URI to be inspected. May be a secret seed, secret URI (with derivation paths and password), SS58 or public URI.
|
|
- sign:
|
|
about: Sign a message, provided on STDIN, with a given (secret) key
|
|
args:
|
|
- suri:
|
|
index: 1
|
|
required: true
|
|
help: The secret key URI.
|
|
- hex:
|
|
short: h
|
|
long: hex
|
|
help: The message on STDIN is hex-encoded data
|
|
takes_value: false
|
|
- transfer:
|
|
about: Author and sign a Node balances::Transfer transaction with a given (secret) key
|
|
args:
|
|
- from:
|
|
index: 1
|
|
required: true
|
|
help: The signing secret key URI.
|
|
- to:
|
|
index: 2
|
|
required: true
|
|
help: The destination account public key URI.
|
|
- amount:
|
|
index: 3
|
|
required: true
|
|
help: The number of units to transfer.
|
|
- index:
|
|
index: 4
|
|
required: true
|
|
help: The signing account's transaction index.
|
|
- genesis:
|
|
short: g
|
|
long: genesis
|
|
help: The genesis hash or a recognised chain identifier (dev, elm, alex).
|
|
takes_value: true
|
|
- verify:
|
|
about: Verify a signature for a message, provided on STDIN, with a given (public or secret) key
|
|
args:
|
|
- sig:
|
|
index: 1
|
|
required: true
|
|
help: Signature, hex-encoded.
|
|
- uri:
|
|
index: 2
|
|
required: true
|
|
help: The public or secret key URI.
|
|
- hex:
|
|
short: h
|
|
long: hex
|
|
help: The message on STDIN is hex-encoded data
|
|
takes_value: false
|
|
- 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"
|
|
- sign-transaction:
|
|
about: Sign transaction from encoded Call. Returns a signed and encoded UncheckedMortalCompactExtrinsic as hex.
|
|
args:
|
|
- call:
|
|
short: c
|
|
long: call
|
|
help: The call, hex-encoded.
|
|
takes_value: true
|
|
required: true
|
|
- nonce:
|
|
short: n
|
|
long: nonce
|
|
help: The nonce.
|
|
takes_value: true
|
|
required: true
|
|
- suri:
|
|
long: suri
|
|
short: s
|
|
help: The secret key URI.
|
|
takes_value: true
|
|
required: true
|
|
- password:
|
|
short: p
|
|
long: password
|
|
takes_value: true
|
|
help: The password for the key.
|
|
required: true
|
|
- prior-block-hash:
|
|
short: h
|
|
long: prior-block-hash
|
|
help: The prior block hash, hex-encoded.
|
|
takes_value: true
|
|
required: true
|