Skip to content

Commit

Permalink
Merge branch 'main' into 1533-make-plonkverifier-an-external-library-…
Browse files Browse the repository at this point in the history
…again
  • Loading branch information
alysiahuggins committed Jul 30, 2024
2 parents 1ddf1e2 + 671cc1f commit e724d11
Show file tree
Hide file tree
Showing 6 changed files with 16 additions and 42 deletions.
File renamed without changes.
2 changes: 1 addition & 1 deletion CODEOWNERS
Validating CODEOWNERS rules …
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
# later match takes precedence, they will be requested for review when someone
# opens a pull request.

* @nomaxg @philippecamacho @ImJeremyHe @sveitser @jbearer @tbro
* @nomaxg @philippecamacho @ImJeremyHe @sveitser @jbearer @tbro @imabdulbasit

# Dependabot PRs
*.toml @nomaxg @philippecamacho @ImJeremyHe @sveitser
Expand Down
48 changes: 7 additions & 41 deletions flake.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 2 additions & 0 deletions hotshot-state-prover/src/circuit.rs
Original file line number Diff line number Diff line change
Expand Up @@ -123,13 +123,15 @@ impl AsRef<[Variable]> for LightClientStateVar {
/// - a list of schnorr signatures of the updated states (`Vec<SchnorrSignature>`), default if the node doesn't sign the state
/// - updated light client state (`(view_number, block_height, block_comm_root, fee_ledger_comm, stake_table_comm)`)
/// - a quorum threshold
///
/// Lengths of input vectors should not exceed the `stake_table_capacity`.
/// The list of stake table entries, bit indicators and signatures will be padded to the `stake_table_capacity`.
/// It checks that
/// - the vector that indicates who signed is a bit vector
/// - the signers' accumulated weight exceeds the quorum threshold
/// - the stake table corresponds to the one committed in the light client state
/// - all Schnorr signatures over the light client state are valid
///
/// and returns
/// - A circuit for proof generation
/// - A list of public inputs for verification
Expand Down
3 changes: 3 additions & 0 deletions hotshot-state-prover/src/snark.rs
Original file line number Diff line number Diff line change
Expand Up @@ -43,12 +43,15 @@ pub fn preprocess(
/// - updated light client state (`(view_number, block_height, block_comm_root, fee_ledger_comm, stake_table_comm)`)
/// - a bit vector indicates the signers
/// - a quorum threshold
///
/// Returns error or a pair `(proof, public_inputs)` asserting that
/// - the signer's accumulated weight exceeds the quorum threshold
/// - the stake table corresponds to the one committed in the light client state
/// - all schnorr signatures over the light client state are valid
///
/// # Errors
/// Errors if unable to generate proof
///
/// # Panics
/// if the stake table is not up to date
#[allow(clippy::too_many_arguments)]
Expand Down
3 changes: 3 additions & 0 deletions sequencer/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -125,3 +125,6 @@ zeroize = { workspace = true }

[package.metadata.cargo-udeps.ignore]
normal = ["hotshot-testing"]

[lints.rust]
unexpected_cfgs = { level = "warn", check-cfg = ['cfg(async_executor_impl, values("tokio", "async-std"))'] }

0 comments on commit e724d11

Please sign in to comment.