Skip to content

Conversation

@samkim-crypto
Copy link
Contributor

@samkim-crypto samkim-crypto commented Nov 27, 2025

Problem

As I was tackling #474, I realized that each of the pubkey.rs, signature.rs, and proof_of_possession.rs files are becoming quite long and harder to read.

Summary of Changes

In preparation for adding the new PubkeyAffine, SignatureAffine, and ProofOfPossesionAffine types, I first did a refactor of the pubkey.rs, signature.rs, and proof_of_possession.rs types.

Each each pubkey, signature, and proof_of_possession modules are divided into

  • points.rs: contains the Projective type and will soon host the Affine type
  • bytes.rs: contains the serialized types like Pubkey (soon to be PubkeyUncompressed) and PubkeyCompressed.
  • conversion.rs: contains any conversion logic between points

@samkim-crypto samkim-crypto force-pushed the bls-refactor branch 5 times, most recently from 3ea1038 to a1d38f1 Compare December 1, 2025 02:41
@samkim-crypto samkim-crypto marked this pull request as ready for review December 1, 2025 03:03
@samkim-crypto samkim-crypto requested a review from zz-sol December 1, 2025 03:04
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.

1 participant