From c4e5e292444e138b968fb27cfac4f1e6ee375bc3 Mon Sep 17 00:00:00 2001 From: Sunny Aggarwal Date: Fri, 6 Nov 2020 11:21:45 -0400 Subject: [PATCH] Update and rename adr-034-change-pubkey.md to adr-034-account-rekeying.md --- ...hange-pubkey.md => adr-034-account-rekeying.md} | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-) rename docs/architecture/{adr-034-change-pubkey.md => adr-034-account-rekeying.md} (93%) diff --git a/docs/architecture/adr-034-change-pubkey.md b/docs/architecture/adr-034-account-rekeying.md similarity index 93% rename from docs/architecture/adr-034-change-pubkey.md rename to docs/architecture/adr-034-account-rekeying.md index 15979759b..0073d6f0a 100644 --- a/docs/architecture/adr-034-change-pubkey.md +++ b/docs/architecture/adr-034-account-rekeying.md @@ -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.