Skip to content

Commit

Permalink
Fix subkey does not verify with pubkey (paritytech#3547)
Browse files Browse the repository at this point in the history
* 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
  • Loading branch information
seerscode authored and gavofyork committed Sep 12, 2019
1 parent 042b26d commit ed441c4
Show file tree
Hide file tree
Showing 3 changed files with 387 additions and 207 deletions.
4 changes: 2 additions & 2 deletions subkey/README.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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.
Expand Down
Loading

0 comments on commit ed441c4

Please sign in to comment.