Skip to content
Snippets Groups Projects

doc: Document NewOwnerKeyPayload, RevocationPayload

Merged pini requested to merge pini-issue-101 into master
All threads resolved!
1 file
+ 4
4
Compare changes
  • Side-by-side
  • Inline
+ 4
4
@@ -24,9 +24,9 @@ Only use `identity` pallet. The `membership` calls are disabled.
## Change key
A member can request a key change via the `identity.change_onwner_key` call. It needs the following SCALE encoded (see SCALE encoding section below) payload:
* The new owner key payload prefix (rust definition: `[b'i', b'c', b'o', b'k']`)
* The new owner key payload prefix (rust definition: `b"icok"`)
* the genesis block hash. (rust type `[u8; 32]` (`H256`))
* The identity index (rust type `1u64`)
* The identity index (rust type `u64`)
* The old key (rust type `u64`)
This payload must be signed with the new key.
@@ -40,8 +40,8 @@ This feature is useful in case the user has lost their private key since the rev
### Generate the revocation payload
The revocation needs this SCALE encoded (see SCALE encoding section below) payload:
* The revocation payload prefix (rust definition: `[b'r', b'e', b'v', b'o']`)
* The identity index (rust type `1u64`)
* The revocation payload prefix (rust definition: `b"revo"`)
* The identity index (rust type `u64`)
* the genesis block hash. (rust type `[u8; 32]` (`H256`))
This payload must be signed with the corresponding revocation key.
Loading