Skip to content

implement config options - #5

Merged
zz-sol merged 6 commits into
solana-program:mainfrom
zz-sol:zz/config_options
Jul 23, 2026
Merged

implement config options#5
zz-sol merged 6 commits into
solana-program:mainfrom
zz-sol:zz/config_options

Conversation

@zz-sol

@zz-sol zz-sol commented Jul 16, 2026

Copy link
Copy Markdown
Collaborator

As discussed #3, this PR adds a configuration byte variant to allow for invocation of different verification methods.

/// `variant || public_key || signature || message`, where `variant` is the
/// [`VerificationVariant`] selector byte.

currently only zip-215 and dalek variants are supported.

@zz-sol
zz-sol requested a review from samkim-crypto July 16, 2026 14:53

@samkim-crypto samkim-crypto left a comment

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.

Looking good! Let me know what you think about my comments below.

Comment thread ed25519-verify/src/config.rs Outdated
Comment thread program/src/lib.rs Outdated
Comment thread ed25519-verify/src/verifier.rs Outdated
Comment thread ed25519-verify/src/verifier.rs Outdated
@zz-sol
zz-sol requested a review from samkim-crypto July 22, 2026 00:55

@samkim-crypto samkim-crypto left a comment

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.

Okay looks good to me!

I think some parts, especially the docs can be simplified and smoothed out a bit, but that can be done in follow-up PRs. Let's also address Jon's comments in #2 in follow-up PRs as well.

@zz-sol
zz-sol merged commit 45be49d into solana-program:main Jul 23, 2026
21 checks passed

@joncinque joncinque left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Looks great! Just some flyby comments

Comment on lines +107 to +111
impl Default for VerificationCriteria {
fn default() -> Self {
Self::zip215()
}
}

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Default seems like a footgun for this type -- can we remove it?

Comment thread .config/spellcheck.dic
Comment on lines +19 to +20
dalek
dalek's

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

nit: you should be able to combine these by doing dalek/P

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.

3 participants