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

Add initial implentation #2

Merged
merged 7 commits into from
Nov 25, 2024
Merged

Add initial implentation #2

merged 7 commits into from
Nov 25, 2024

Conversation

moCello
Copy link
Member

@moCello moCello commented Nov 22, 2024

Resolves #1

src/lib.rs Outdated
/// original plaintext.
///
/// ## Return
/// Returns the `[JubJubExtended]` plaintext.
Copy link
Member Author

Choose a reason for hiding this comment

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

Will fix this:

Suggested change
/// Returns the `[JubJubExtended]` plaintext.
/// Returns the [`JubJubExtended`] plaintext.

src/lib.rs Outdated
/// original plaintext in a gadget that can be used in a plonk-circuit.
///
/// ## Return
/// Returns the `[WitnessPoint]` plaintext.
Copy link
Member Author

Choose a reason for hiding this comment

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

Will fix this

Suggested change
/// Returns the `[WitnessPoint]` plaintext.
/// Returns the [`WitnessPoint`] plaintext.

src/lib.rs Outdated
/// plaintext [`JubJubExtended`].
///
/// ## Return
/// Returns the ciphertext tuple `([JubJubExtended], [JubJubExtended])`.
Copy link
Member Author

Choose a reason for hiding this comment

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

Will fix this

Suggested change
/// Returns the ciphertext tuple `([JubJubExtended], [JubJubExtended])`.
/// Returns the ciphertext tuple `(JubJubExtended, JubJubExtended)`.

@moCello moCello force-pushed the mocello/1_initial_impl branch from f7967bd to d185db3 Compare November 25, 2024 13:55
@moCello moCello force-pushed the mocello/1_initial_impl branch from d185db3 to 263c54a Compare November 25, 2024 13:56
README.md Outdated
Comment on lines 54 to 56
$$
c_2 - c_1 * sk_B = m + PK_B * r - (r * G * sk_B) = m + PK_B * r - PK_B * r = m
$$
Copy link
Member

Choose a reason for hiding this comment

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

This is not rendering properly on the md (at least for me)

Copy link
Member Author

Choose a reason for hiding this comment

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

hmm, you're right, it also doesn't render it on github even though github flavored markdown supposedly supports $$ for math blocks. A ```math block seems to do the trick

@Neotamandua Neotamandua self-requested a review November 25, 2024 14:21
Copy link
Member

@Neotamandua Neotamandua left a comment

Choose a reason for hiding this comment

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

LGTM

@moCello moCello merged commit 1db65e6 into main Nov 25, 2024
5 checks passed
@moCello moCello deleted the mocello/1_initial_impl branch November 25, 2024 14:59
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.

Move elgamal encryption from phoenix-core
3 participants