Update adr-034-change-pubkey.md

This commit is contained in:
Sunny Aggarwal 2020-10-21 21:42:47 -04:00 committed by GitHub
parent cb99dbd413
commit 68ba5647a2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -29,10 +29,7 @@ message MsgChangePubKey {
}
```
As an example, account pubkey change message can be defined as follows.
Here, the signature is signed for the public key thats current in-state for account `cosmos1wf5h7meplxu3sc6rk2agavkdsmlsen7rgsasxk`, as normally done in the ante-handler.
The MsgChangePubKey transaction needs to be signed by the existing pubkey in state.
Once, approved, the handler for this message type, which takes in the AccountKeeper, will update the in-state pubkey for the account and replace it with the pubkey from the Msg.