Skip to content

Commit

Permalink
Add note about relationship between signatures and proofs
Browse files Browse the repository at this point in the history
Co-authored-by: Daira Hopwood <daira@jacaranda.org>
  • Loading branch information
str4d and daira authored Jun 23, 2022
1 parent 81626b3 commit 4bed672
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/bundle/batch.rs
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,8 @@ impl BatchValidator {
pub fn validate<R: RngCore + CryptoRng>(self, vk: &VerifyingKey, rng: R) -> bool {
if self.signatures.is_empty() {
// An empty batch is always valid, but is not free to run; skip it.
// Note that a transaction has at least a binding signature, so if
// there are no signatures, there are also no proofs.
return true;
}

Expand Down

0 comments on commit 4bed672

Please sign in to comment.