Update and rename adr-034-change-pubkey.md to adr-034-account-rekeying.md

This commit is contained in:
Sunny Aggarwal 2020-11-06 11:21:45 -04:00 committed by GitHub
parent 6274240d7c
commit c4e5e29244
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 12 additions and 2 deletions

View File

@ -1,4 +1,4 @@
# ADR 034: Change PubKey
# ADR 034: Account Rekying
## Changelog
@ -6,7 +6,11 @@
## Status
Proposed
PROPOSED
## Abstract
Account rekeying is a process hat allows an account to replace its authentication pubkey with a new one.
## Context
@ -23,10 +27,16 @@ This is possible because the Cosmos SDK `BaseAccount` stores the public key for
To build this system, we design a new Msg type as follows:
```protobuf
service Msg {
rpc ChangePubKey(MsgChangePubKey) returns (MsgChangePubKeyResponse);
}
message MsgChangePubKey {
string address = 1;
google.protobuf.Any pub_key = 2;
}
message MsgChangePubKeyResponse {}
```
The MsgChangePubKey transaction needs to be signed by the existing pubkey in state.