Skip to content

Update the endianness of the polynomial commitments to be big endian#3354

Merged
hwwhww merged 4 commits intoethereum:devfrom
g11tech:kzg-big-endian
May 23, 2023
Merged

Update the endianness of the polynomial commitments to be big endian#3354
hwwhww merged 4 commits intoethereum:devfrom
g11tech:kzg-big-endian

Conversation

@g11tech
Copy link
Contributor

@g11tech g11tech commented May 12, 2023

Co-authored-by: Hsiao-Wei Wang <[email protected]>
@g11tech g11tech changed the title Update the endianess of the polynomial commitments to be big endian Update the endianness of the polynomial commitments to be big endian May 15, 2023
@etan-status
Copy link
Contributor

In CL, represent these as ByteVector - they will retain endianness across layers this way.

CL shouldn't have to see into these commitments, it only has to pass the opaque data to the crypto lib

@hwwhww
Copy link
Contributor

hwwhww commented May 18, 2023

KZG test vectors: general-kzg-4844-20230518.tar.gz

It would be nice if we could verify the KZG update correctness before the spec release. 🙏

/cc @jtraglia @asn-d6 @kevaundray

@jtraglia
Copy link
Member

It would be nice if we could verify the KZG update correctness before the spec release. 🙏

Just to confirm, these test vectors work in c-kzg-4844 after making the required changes.

Copy link
Contributor

@asn-d6 asn-d6 left a comment

Choose a reason for hiding this comment

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

LGTM! Thanks!

Copy link
Member

@jtraglia jtraglia left a comment

Choose a reason for hiding this comment

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

LGTM 👍

@kevaundray
Copy link
Contributor

I'm encountering errors on the consensus-specs test in go-kzg-4844 -- Going to check in a minute to see if I made a wrong change

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants