Skip to content

Conversation

@tholonious
Copy link
Contributor

@tholonious tholonious commented Jun 27, 2023

This PR makes three changes:

  1. It migrates the existing ECDSA PublicKey fields in the BlockProducerInfo from a byte slice to the strongly typed PublicKey type
  2. It introduces versioning to BlockProducerInfo, with a byte encoder and decoder that support the new versioned schema. The existing un-versioned schema is still supported by the legacy encoder and decoder
  3. It adds BLS VotingPUblicKey and VotePartialSignature fields to BlockProducerInfo that are populated in newly created Version=1 format

@tholonious
Copy link
Contributor Author

tholonious commented Jun 27, 2023

Base automatically changed from sa/simplify_public_key_field_names_for_vote_and_timeout_msg_types to feature/pos-messaging-schema June 27, 2023 17:29
@tholonious tholonious force-pushed the sa/add-bls-pk-and-signature-to-BlockProducerInfo branch from c2f14ab to 5c55de0 Compare June 27, 2023 19:07
@tholonious tholonious requested review from AeonSw4n and lazynina June 27, 2023 19:24
@tholonious tholonious marked this pull request as ready for review June 27, 2023 19:25
@tholonious tholonious requested a review from a team as a code owner June 27, 2023 19:25
@tholonious tholonious changed the title PoS Add BLS PK and signature to BlockProducerInfo PoS Add BLS public key and signature to BlockProducerInfo Jun 27, 2023
Copy link
Contributor

@AeonSw4n AeonSw4n left a comment

Choose a reason for hiding this comment

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

Nice! I just have one comment regarding the forward-compatibility of BlockProducerInfo.Version.

@tholonious tholonious requested a review from AeonSw4n June 28, 2023 15:04
@tholonious tholonious merged commit 3e21ba2 into feature/pos-messaging-schema Jun 28, 2023
@tholonious tholonious deleted the sa/add-bls-pk-and-signature-to-BlockProducerInfo branch June 28, 2023 15:12
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.

4 participants