mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-06-16 16:41:10 +00:00
Fix subkey does not verify with pubkey (#3547)
* Decode hex * Remove log * Some refactoring to help with testing * Add own functions for sign and verify. * Add sign test * Sign-verify test * Generate-sign-verify test for both cryptos * Add aliases * Print signature * More refactoring * Update sign-transaction as transfer * Simplify transfer and sign-transaction * main to top file * rename read_input_message to read_message_from_stdin * More refactoring * Add read_required_parameter * Add format seed * More refactoring * format code * add print_extrinsic * Remove 0x from print * fix naming * Fix readme * Remove rustfmt * Remove commented test * Fix import nits
This commit is contained in:
@@ -31,7 +31,7 @@ OUTPUT:
|
||||
`subkey` expects a message to come in on STDIN, one way to sign a message would look like this:
|
||||
|
||||
```bash
|
||||
echo <msg> | subkey sign <seed,mnemonic>
|
||||
echo -n <msg> | subkey sign <seed,mnemonic>
|
||||
|
||||
OUTPUT:
|
||||
a69da4a6ccbf81dbbbfad235fa12cf8528c18012b991ae89214de8d20d29c1280576ced6eb38b7406d1b7e03231df6dd4a5257546ddad13259356e1c3adfb509
|
||||
@@ -40,7 +40,7 @@ a69da4a6ccbf81dbbbfad235fa12cf8528c18012b991ae89214de8d20d29c1280576ced6eb38b740
|
||||
=== Verifying a signature
|
||||
|
||||
```bash
|
||||
echo <msg> | subkey verify <sig> <address>
|
||||
echo -n <msg> | subkey verify <sig> <address>
|
||||
|
||||
OUTPUT:
|
||||
Signature verifies correctly.
|
||||
|
||||
Reference in New Issue
Block a user