Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Description
This PR implements the V2 keyset ID migration strategy for CDK. On the mint side, new keysets are now generated as V2 native (Version01), which includes unit and expiry in the keyset ID hash. For backward compatibility, the mint exposes both V1 and V2 keyset IDs in API responses (/v1/keysets and /v1/keys), controlled by the expose_v1_keyset_ids configuration flag (default: true). This allows existing wallets using V1 IDs to continue operating while new wallets can discover and adopt V2 IDs. The keyset lookup (/v1/keys/{id}) accepts both V1 and V2 IDs regardless of the exposure setting, ensuring tokens with either ID version can always be redeemed. On the wallet side, when selecting an active keyset for creating new proofs (swaps, mints, receives), the wallet now prefers V2 keysets over V1, falling back to fee-based selection among keysets of the same version.
Notes to the reviewers
Suggested CHANGELOG Updates
CHANGED
ADDED
REMOVED
FIXED
Checklist
just final-checkbefore committing