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

chore: update book on memory argument #1958

Merged
merged 2 commits into from
Jan 21, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions book/docs/security/security-model.md
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,8 @@ SP1 assumes that the discrete logarithm problem on the elliptic curve over the d

An analysis based on Thomas Pornin's paper ["EcGFp5: a Specialized Elliptic Curve"](https://eprint.iacr.org/2022/274.pdf), confirmed that the selected elliptic curve provides at least 100 bits of security against known attacks.

This assumption is used in our new memory argument. For more details, see [our notes](.../../../../static/SP1_Turbo_Memory_Argument.pdf) explaining how it works.

### Groth16, PLONK, and the Zero-Knowledgeness of SP1

SP1 utilizes [Gnark's](https://github.com/Consensys/gnark) implementation of Groth16 or PLONK over the BN254 curve to compress a STARK proof into a SNARK proof, which is then used for on-chain verification. SP1 assumes all cryptographic assumptions required for the security of Groth16 and PLONK. While our implementations of Groth16 and PLONK are zero-knowledge, individual STARK proofs in SP1 do not currently satisfy the zero-knowledge property.
Expand Down
Binary file added book/static/SP1_Turbo_Memory_Argument.pdf
Binary file not shown.
2 changes: 2 additions & 0 deletions book/versioned_docs/version-4.0.0/security/security-model.md
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,8 @@ SP1 assumes that the discrete logarithm problem on the elliptic curve over the d

An analysis based on Thomas Pornin's paper ["EcGFp5: a Specialized Elliptic Curve"](https://eprint.iacr.org/2022/274.pdf), confirmed that the selected elliptic curve provides at least 100 bits of security against known attacks.

This assumption is used in our new memory argument. For more details, see [our notes](.../../../../../static/SP1_Turbo_Memory_Argument.pdf) explaining how it works.

### Groth16, PLONK, and the Zero-Knowledgeness of SP1

SP1 utilizes [Gnark's](https://github.com/Consensys/gnark) implementation of Groth16 or PLONK over the BN254 curve to compress a STARK proof into a SNARK proof, which is then used for on-chain verification. SP1 assumes all cryptographic assumptions required for the security of Groth16 and PLONK. While our implementations of Groth16 and PLONK are zero-knowledge, individual STARK proofs in SP1 do not currently satisfy the zero-knowledge property.
Expand Down
2 changes: 2 additions & 0 deletions crates/stark/src/septic_extension.rs
Original file line number Diff line number Diff line change
Expand Up @@ -407,6 +407,7 @@ impl<F: AbstractField> Display for SepticExtension<F> {
}

impl<F: Field> SepticExtension<F> {
/// Returns the value of z^{index * p} in the [`SepticExtension`] field.
fn z_pow_p(index: u32) -> Self {
// The constants written below are specifically for the BabyBear field.
debug_assert_eq!(F::order(), BigUint::from(2013265921u32));
Expand Down Expand Up @@ -482,6 +483,7 @@ impl<F: Field> SepticExtension<F> {
unreachable!();
}

/// Returns the value of z^{index * p^2} in the [`SepticExtension`] field.
fn z_pow_p2(index: u32) -> Self {
// The constants written below are specifically for the BabyBear field.
debug_assert_eq!(F::order(), BigUint::from(2013265921u32));
Expand Down
Loading