Skip to content

Conversation

@a1denvalu3
Copy link
Contributor

@a1denvalu3 a1denvalu3 commented Jan 22, 2026

  • Adds cdk_version column to keyset table (Postgres/SQLite).
  • Populates field with env!("CARGO_PKG_VERSION") on keyset generation.
  • Updates internal structs and proto definitions.
  • Allows internal tracking of CDK version per keyset.

closes: #1552

@github-project-automation github-project-automation bot moved this to Backlog in CDK Jan 22, 2026
@thesimplekid thesimplekid added this to the 0.15.0 milestone Jan 22, 2026
@a1denvalu3 a1denvalu3 force-pushed the feat/keyset-cdk-versioning branch from 2e2c75b to 157a708 Compare January 23, 2026 10:39
Copy link
Collaborator

@thesimplekid thesimplekid left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Do you think we need to write more then just the version number but also that its cdk? I am think about a case we we migration a nutshell mint, we would want to know what ones are nutshell vs cdk and with just the version we could not tell this?

@a1denvalu3
Copy link
Contributor Author

@thesimplekid how do you suggest doing this?

@ye0man ye0man moved this from Backlog to In Review in CDK Feb 4, 2026
Comment on lines 430 to 443
@@ -368,3 +435,112 @@ pub struct FeeReserve {
/// Percentage expected fee
pub percent_fee_reserve: f32,
}

/// CDK Version
#[derive(Debug, Clone, Hash, PartialEq, Eq)]
pub struct CdkVersion {
/// Implementation name (e.g., "cdk", "nutshell")
pub implementation: String,
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can we move these above the test mod? The test mod should be last in the file.

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can we include these tests in the test mod of crates/cdk-common/src/common.rs where the CdkVersion is defined, we shouldn't need a separate mod here.

Keys keys = 5;
optional uint64 final_expiry = 6;
uint64 version = 7;
optional string cdk_version = 8;
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think this should just be version? In theory this should be general for all signatory though the spec is not merged. @lescuer97

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

just "version" would be confusing.

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yeah true, software version? I'm not sure just something not cdk specefic I think.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

how version is used right now is to specify the order of the keysets.

mint_version is probably fine.

Copy link
Contributor

@lescuer97 lescuer97 Feb 10, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

issuer would be a good name here

@github-project-automation github-project-automation bot moved this from In Review to In progress in CDK Feb 5, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: In progress

Development

Successfully merging this pull request may close these issues.

Add mint version that generates keyset to the keysets table

3 participants