-
Notifications
You must be signed in to change notification settings - Fork 2
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
Rename PrepareMessage to PrepareState #103
Conversation
c26fc05
to
e890972
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.
The type changes look good, but there are three method names that we should roll back, because they were correctly referring to prepare messages.
packages/prio3/src/prio3.ts
Outdated
@@ -267,7 +267,7 @@ export class Prio3<Measurement> implements Prio3Vdaf<Measurement> { | |||
return { verifier, jointRand }; | |||
} | |||
|
|||
private encodePrepareMessage( | |||
private encodePrepareState( |
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.
This should keep the name encodePrepareMessage
. (Technically, we are using this function to encode both prepare message shares and prepare messages, but these have the same concrete type and encoding in the context of Prio3)
packages/prio3/src/prio3.ts
Outdated
@@ -242,7 +242,7 @@ export class Prio3<Measurement> implements Prio3Vdaf<Measurement> { | |||
: await this.decodeHelperShare(aggregatorId, encoded); | |||
} | |||
|
|||
private decodePrepareMessage(input: Buffer): { | |||
private decodePrepareState(input: Buffer): { |
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.
Likewise, this should keep the name decodePrepareMessage
.
packages/vdaf/src/index.ts
Outdated
| { outputShare: OutputShare }; | ||
|
||
prepSharesToPrepareMessage( | ||
prepSharesToPrepareState( |
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.
This should keep the name prepSharesToPrepareMessage. See https://cfrg.github.io/draft-irtf-cfrg-vdaf/draft-irtf-cfrg-vdaf.html#section-5.2-6.3
20ff3d2
to
909303b
Compare
Pull Request Test Coverage Report for Build 3161133892Warning: This coverage report may be inaccurate.This pull request's base commit is no longer the HEAD commit of its target branch. This means it includes changes from outside the original pull request, including, potentially, unrelated coverage changes.
Details
💛 - Coveralls |
909303b
to
2a48674
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.
Looks good, I noted one more rename of a temporary below.
Co-authored-by: David Cook <dcook@letsencrypt.org>
closes #31
based on #34