Trust Tokens: Add a synchronous key commitment getter interface
This CL's child (crrev.com/c/2176796) adds a record expiry delegate relying on synchronous availability of Trust Tokens key commitments in order to check if the verification key corresponding to a signed redemption record is still present in the key's issuer's most recent key commitment result. In order to provide synchronous access to keys, this CL adds a synchronous key commitment getter interface and extends TrustTokenKeyCommitments (which already stores all issuers' keys in memory, so is eminently capable of providing access synchronously) to implement the interface. In a world where we fetch keys online during requests instead of offline through the component updater, we could instead provide this synchronous access by caching fetched keys in the trust token store. R=csharrison Test: Extend TrustTokenKeyCommitments unit tests. Bug: 1077060 Change-Id: I0c6bb756fd8c0675ed890cf9c680412e2155d646 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2183509 Commit-Queue: David Van Cleve <davidvc@chromium.org> Reviewed-by:Charlie Harrison <csharrison@chromium.org> Auto-Submit: David Van Cleve <davidvc@chromium.org> Cr-Commit-Position: refs/heads/master@{#766435}
Showing
Please register or sign in to comment