From 045e7874b05525d1d603b51f0061921ed19273e3 Mon Sep 17 00:00:00 2001 From: Sunny Aggarwal Date: Mon, 23 Nov 2020 15:33:40 -0500 Subject: [PATCH] Update adr-034-account-rekeying.md Add stack of past keys --- docs/architecture/adr-034-account-rekeying.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/docs/architecture/adr-034-account-rekeying.md b/docs/architecture/adr-034-account-rekeying.md index 28e67e97fc..cc7fc8530c 100644 --- a/docs/architecture/adr-034-account-rekeying.md +++ b/docs/architecture/adr-034-account-rekeying.md @@ -50,6 +50,8 @@ Because an account can no longer be pruned from state once its pubkey has change ctx.GasMeter().ConsumeGas(amount, "pubkey change fee") ``` +Everytime a key for an address is changed, we will store a log of this change in the state of the chain, thus creating a stack of all previous keys for an address and the time intervals for which they were active. This allows dapps and clients to easily query past keys for an account which may be useful for features such as verifying timestamped off-chain signed messages. + ## Consequences