Skip to content

Commit

Permalink
Fix fmt
Browse files Browse the repository at this point in the history
  • Loading branch information
shenkeyao committed Jul 26, 2024
1 parent c4765a1 commit 5e9bc60
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
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
1 change: 1 addition & 0 deletions hotshot-state-prover/src/snark.rs
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,7 @@ 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
Expand Down

0 comments on commit 5e9bc60

Please sign in to comment.