Skip to content
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

Challenge in accumulation mode #90

Merged
merged 1 commit into from
Mar 26, 2024

Conversation

davxy
Copy link
Collaborator

@davxy davxy commented Mar 26, 2024

DLEQ-vrf sign / verify functions take as input an object which implements IntoTranscript trait.

This means the user is free to construct and pass a transcript constructed via the new_blank_accumulator, which internally uses the AccumulateMode.

This prevents to panic and to correctly handle such a case

@burdges burdges merged commit 3ebdd26 into w3f:master Mar 26, 2024
4 checks passed
@burdges
Copy link
Collaborator

burdges commented Mar 26, 2024

LGTM

I'm unsure if this matters, given how Fiat-Shamir transforms works, but yeah doing this costs nothing, so good.

@burdges
Copy link
Collaborator

burdges commented Mar 26, 2024

As you're looking at Transcript, I'll point out that accumulation mode transcripts could in theory be deserialized and checked, which makes them useful for remote signers. This is one of the improvements over merlin, but it's still optimized for just doing the transcript.

In my mind, there is a question of whether we should use this enum here, or if we should use a trait. I selected an enum because it'll cost nothing next to the hashing and the trait makes the code messier.

@davxy davxy deleted the challenge-in-accumulation-mode branch March 26, 2024 18:39
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.

3 participants