Update adr-034-account-rekeying.md

Add stack of past keys
This commit is contained in:
Sunny Aggarwal 2020-11-23 15:33:40 -05:00 committed by GitHub
parent 20617d0db4
commit 045e7874b0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 0 deletions

View File

@ -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