subkey: compute and inspect a moduleid (#5676)

* create moduleid command

* fill README

* make it work on the last master
This commit is contained in:
Eliott Teissonniere
2020-04-17 15:17:36 -07:00
committed by GitHub
parent bc6ebabf23
commit cacba117f8
2 changed files with 33 additions and 1 deletions
+13
View File
@@ -68,3 +68,16 @@ subkey sign-transaction \
```
Will output a signed and encoded `UncheckedMortalCompactExtrinsic` as hex.
=== Inspecting a module ID
```bash
subkey --network kusama moduleid "py/trsry"
OUTPUT:
Public Key URI `F3opxRbN5ZbjJNU511Kj2TLuzFcDq9BGduA9TgiECafpg29` is account:
Network ID/version: kusama
Public key (hex): 0x6d6f646c70792f74727372790000000000000000000000000000000000000000
Account ID: 0x6d6f646c70792f74727372790000000000000000000000000000000000000000
SS58 Address: F3opxRbN5ZbjJNU511Kj2TLuzFcDq9BGduA9TgiECafpg29
```