Repository navigation
Adding a method to MapHandle to retrieve the last version a key was modified #2134
|
This is a feature we want both for internal features (rekey ledger entries should point to the version where the previous key was written, so we can traverse the chain of all secrets) and as an external request for use in apps. Given a handle and a target key, we want to retrieve the last time this was written to. This is supported by the underlying data structures - we already store this, we just don't expose it at all. So the question is how it should be exposed. Some important details:
I see 2 possible approaches here:
I have a draft implementing option 1, but after some more thought I think we should do option 2. |
Replies: 3 comments 8 replies
|
I do prefer option 2 as well, it seems more natural. Perhaps Adding Soren Bleikertz (@soren-da) to the discussion, since he has expressed interest in the feature. |
|
Option 2. seems more appealing because it is simpler and it avoid the cost of deserialising the value when this one isn't needed. I'm assuming that |
Link #2137