mirror of https://github.com/zcash/orchard.git
Add note about relationship between signatures and proofs
Co-authored-by: Daira Hopwood <daira@jacaranda.org>
This commit is contained in:
parent
81626b3b28
commit
4bed67218a
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue