Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

@febo
Copy link
Collaborator

@febo febo commented Apr 1, 2025

Problem

A Pubkey is currently being represented as a lightweight alias over a [u8; 32] array. This is different from the Pubkey type on Solana SDK, which makes it confusing to write code that supports both pubkey "types".

Solution

Use the new Address type from Solana SDK instead. The Pubkey type is an alias to Address, so making this change will result in both pinocchio and SDK to use the same type.

This PR also remove the pinocchio-pubkey crate, since all the functionality has been added to solana-address.

@febo febo added the breaking PR contains breaking changes label Apr 1, 2025
@febo febo force-pushed the febo/sdk-program-error branch from 662299a to fd9e12e Compare July 3, 2025 11:29
@febo febo force-pushed the febo/sdk-program-error branch 2 times, most recently from fa49062 to 4100e84 Compare September 12, 2025 12:42
@febo febo force-pushed the febo/solana-address branch from ea7c848 to bb588af Compare September 16, 2025 21:11
@febo febo force-pushed the febo/sdk-program-error branch from 4100e84 to 8077fe8 Compare September 21, 2025 09:36
@febo febo force-pushed the febo/solana-address branch 2 times, most recently from b026be9 to baa8beb Compare September 21, 2025 09:58
Cargo.toml Outdated
pinocchio-pubkey = { version = "0.3", path = "sdk/pubkey" }
quote = "1.0"
regex = "1"
solana-address = { version = "1.0", git = "https://github.com/febo/solana-sdk.git", branch = "derive-address" }
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

This will be updated by the published crate once available.

@febo febo marked this pull request as ready for review September 21, 2025 10:02
Copy link
Contributor

@rustopian rustopian left a comment

Choose a reason for hiding this comment

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

All looks good to me. 99% mechanical refactor, with a few straightforward adaptations.

Copy link
Collaborator

@joncinque joncinque left a comment

Choose a reason for hiding this comment

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

Looks great to me! Just a couple of little things

@febo febo requested a review from joncinque October 1, 2025 23:44
@febo
Copy link
Collaborator Author

febo commented Oct 1, 2025

Update dependency branch to use the "copy" feature from solana-address.

@febo febo force-pushed the febo/solana-address branch from 9d5e409 to 17d0edd Compare October 4, 2025 01:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

breaking PR contains breaking changes

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants