Skip to content
This repository has been archived by the owner on Aug 30, 2024. It is now read-only.

Commit

Permalink
update: rm max_num_chunks from verify_variable_signatures_circuit inv…
Browse files Browse the repository at this point in the history
…ocation
  • Loading branch information
ratankaliani committed Aug 17, 2023
1 parent 29ee916 commit 1f6fe63
Show file tree
Hide file tree
Showing 2 changed files with 53 additions and 56 deletions.
104 changes: 52 additions & 52 deletions Cargo.lock

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

5 changes: 1 addition & 4 deletions src/signature.rs
Original file line number Diff line number Diff line change
Expand Up @@ -159,12 +159,9 @@ impl<F: RichField + Extendable<D>, const D: usize> TendermintSignature<F, D>

const VALIDATOR_MESSAGE_BITS_LENGTH_MAX: usize =
VALIDATOR_MESSAGE_BYTES_LENGTH_MAX * 8;

// Note: Add 512 bits for the sig.r and pk_compressed in EDDSA
const MAX_NUM_CHUNKS: usize = calculate_num_chunks(VALIDATOR_MESSAGE_BITS_LENGTH_MAX + 512);

let eddsa_target =
verify_variable_signatures_circuit::<F, Self::Curve, E, C, D, VALIDATOR_MESSAGE_BITS_LENGTH_MAX, MAX_NUM_CHUNKS>(self, messages.len());
verify_variable_signatures_circuit::<F, Self::Curve, E, C, D, VALIDATOR_MESSAGE_BITS_LENGTH_MAX>(self, messages.len());

for i in 0..messages.len() {
let message = &messages[i];
Expand Down

0 comments on commit 1f6fe63

Please sign in to comment.