Find a key by its version identifier (checks current and previous).
The key ring to search.
The version identifier to look up.
The matching key, or undefined if not found.
undefined
const key = findKeyByVersion(ring, "v1"); Copy
const key = findKeyByVersion(ring, "v1");
Find a key by its version identifier (checks current and previous).