Skip to content

pod!: Remove OptionalNonZeroElGamalPubkey#171

Merged
samkim-crypto merged 3 commits intosolana-program:mainfrom
samkim-crypto:deprecate-zk-sdk
Feb 25, 2026
Merged

pod!: Remove OptionalNonZeroElGamalPubkey#171
samkim-crypto merged 3 commits intosolana-program:mainfrom
samkim-crypto:deprecate-zk-sdk

Conversation

@samkim-crypto
Copy link
Contributor

@samkim-crypto samkim-crypto commented Jan 25, 2026

Problem

The spl-pod crate depends on the solana-zk-sdk and all of its heavy cryptographic dependencies even though it does not contain any cryptographic code. This is because spl-pod supports OptionalNonZeroElGamalPubkey. It would be better if OptionalNonZeroElGamalPubkey is moved directly into the solana-zk-sdk so that spl-pod can remove the dependency on solana-zk-sdk.

Summary of Changes

Remove OptionalNonZeroElGamalPubkey.

@grod220 grod220 mentioned this pull request Feb 24, 2026
11 tasks
@grod220
Copy link
Member

grod220 commented Feb 24, 2026

Given the upcoming breaking change, think we can just remove this entirely and not have the deprecation warning.

@samkim-crypto samkim-crypto force-pushed the deprecate-zk-sdk branch 5 times, most recently from c9e4f7e to bb2b15f Compare February 24, 2026 22:01
@samkim-crypto samkim-crypto changed the title [pod] Deprecate OptionalNonZeroElGamalPubkey [pod] Remove OptionalNonZeroElGamalPubkey Feb 24, 2026
@grod220 grod220 changed the title [pod] Remove OptionalNonZeroElGamalPubkey pod!: Remove OptionalNonZeroElGamalPubkey Feb 25, 2026
@grod220
Copy link
Member

grod220 commented Feb 25, 2026

Sorry, just merged a few things, given the approval dismissals---can you rebase first? Also changed the title to have the ! like the other PRs (ref).

num_enum = "0.7"
num-traits = "0.2"
serde = { version = "1.0.228", optional = true }
serde = { version = "1.0.228", optional = true, features = ["derive"] }
Copy link
Member

Choose a reason for hiding this comment

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

I'm guessing that the solana-zk-sdk pulled this in automatically before?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Yes zk-sdk pulled in derive feature automatically.

Copy link
Member

@grod220 grod220 left a comment

Choose a reason for hiding this comment

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

LGTM

@samkim-crypto samkim-crypto merged commit 7e4bd70 into solana-program:main Feb 25, 2026
47 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants