Skip to content

Swap spl-pod for solana-zero-copy + solana-nullable#1069

Draft
grod220 wants to merge 1 commit intomainfrom
spl-pod-swap
Draft

Swap spl-pod for solana-zero-copy + solana-nullable#1069
grod220 wants to merge 1 commit intomainfrom
spl-pod-swap

Conversation

@grod220
Copy link
Copy Markdown
Member

@grod220 grod220 commented Apr 1, 2026

Draft attempt at migrating away from spl-pod. Needs to likely wait until solana-zk-* new crates are published.

Comment on lines +52 to +58
/// Convert a legacy ZK SDK ElGamal pod pubkey into the nullable-compatible pod type.
/// This is temporary until updated solana-zk-sdk crates are published.
pub fn convert_legacy_elgamal_pubkey(
pubkey: LegacyPodElGamalPubkey,
) -> Result<PodElGamalPubkey, ProgramError> {
Ok(cast::<LegacyPodElGamalPubkey, PodElGamalPubkey>(pubkey))
}
Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

This draft PR had to do a good deal of conversions between legacy/new zk types. @samkim-crypto, definitely think it's worth holding this PR until the new crates you are working on are published and applied to this repo.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Yes, the crates are now published and I am in the process of swapping out token-2022. I need to resolve some dependency resolution conflict, but I am making progress and I'll ask for your review when I do 🙏

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