-
Notifications
You must be signed in to change notification settings - Fork 119
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat: hello-world namespace support for ADVZ VID scheme #389
Conversation
…, github CI does not)
…duce noise in output
0d9f704
to
93e396e
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM, can approve after addressing Jeb's concern about APIs.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good. I think we might be missing some important traits on the proof types, particularly serdes. But if you want we can get this merged and add those later. Or add them now. Either way
/// KZG batch proofs and accompanying metadata. | ||
/// | ||
/// TODO use batch proof instead of `Vec<P>` <https://github.com/EspressoSystems/jellyfish/issues/387> | ||
pub struct SmallRangeProof<P> { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The proof types should at least derive Clone
, Debug
, and serde traits
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Definitely true. I'm going to merge now anyway because (i) this PR is already too big, (ii) don't want to initiate another round of approval, (iii) there will certainly be back-and-forth over issues like this as we integrate into the sequencer.
* update comments as per #389 (comment) * add commit_only_timer test * tidy: idiomatic construction of polys * remove P: PolynomialCommitmentScheme from GenericAdvz * remove V: MerkleTreeScheme from GenericAdvz * remove type alias Advz, rename GenericAdvz -> Advz * remove some unneeded trait bounds * enforce only H: HasherDigest bound * remove old comments, tidy derivations * fmt * type aliases for kzg * type aliases for MerkleTreeScheme * more use of type aliases * fix rustdoc
closes: #388
Revised 2023-11-06
Force-pushed update incorporating comments from previous reviews and offline discussion.
PayloadProver
subtrait forVidScheme
. It's a generic trait with two implementations for ADVZ. See rustdoc:jellyfish/primitives/src/vid/advz/payload_prover.rs
Lines 9 to 15 in 93e396e
VidScheme
to use&[u8]
for payload type as per offline discussion.bytes_to_field
fromconversion.rs
to a newbytes_to_field.rs
file owned byadvz
.Excerpts from original description
conversion.rs
. It's much simpler now because I decided we don't need to add metadata into the output field elements. Instead, it's the responsibility of the caller to know where exactly their bytes begin/end in the encoded field elements.advz.rs
has a large diff but it's mostly just moving code around.Before we can merge this PR, please make sure that all the following items have been
checked off. If any of the checklist items are not applicable, please leave them but
write a little note why.
Pending
section inCHANGELOG.md
Files changed
in the GitHub PR explorer