-
Notifications
You must be signed in to change notification settings - Fork 165
Add create_with_seed #161
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add create_with_seed #161
Conversation
sdk/pinocchio/src/pubkey.rs
Outdated
| } | ||
|
|
||
| /// Derive a Pubkey from another Pubkey, seed, and a program id. | ||
| #[inline] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This one can always be inlined.
febo
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Just a couple of nits.
ilya-bobyr
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good to me.
But better if @febo would take a look again as well.
This PR adds
create_with_seedfunction. It mimics the same function fromsolana-pubkey, except thatseedis&[u8]instead of&str.