Skip to content

Conversation

@samkim-crypto
Copy link
Contributor

@samkim-crypto samkim-crypto commented Dec 11, 2025

Problem

For places like the vote program anza-xyz/agave#9310, public keys are stored as raw bytes rather than as Pubkey or PubkeyCompressed types provided from the solana-bls-signatures crate. It would be nice if the crate public interface supports verifying signatures or PoPs by directly interpreting the input from raw bytes.

Summary of Changes

Updated the verification functions so that it can interpret public keys, signatures, or PoPs directly from byte arrays. It was pretty simple to do this since we can just implement the AsPubkey, AsSignature, and AsProofOfPossession traits for the fixed size byte arrays.

@samkim-crypto samkim-crypto marked this pull request as ready for review December 11, 2025 14:32
@samkim-crypto samkim-crypto requested a review from zz-sol December 11, 2025 14:32
zz-sol
zz-sol previously approved these changes Dec 11, 2025
Copy link

@zz-sol zz-sol 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 requested a review from zz-sol December 12, 2025 03:20
@samkim-crypto samkim-crypto merged commit 5676afe into anza-xyz:master Dec 12, 2025
24 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