From e600d7b917f2e79aa963c646f1159a85e4dd87d8 Mon Sep 17 00:00:00 2001 From: Dimitris Apostolou Date: Thu, 3 Feb 2022 20:15:32 +0200 Subject: [PATCH] Fix typos --- zcash_primitives/src/sapling.rs | 2 +- zcash_primitives/src/sapling/note_encryption.rs | 2 +- zcash_primitives/src/transaction/sighash.rs | 2 +- zcash_proofs/src/lib.rs | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/zcash_primitives/src/sapling.rs b/zcash_primitives/src/sapling.rs index b5094c07f..025fc9b53 100644 --- a/zcash_primitives/src/sapling.rs +++ b/zcash_primitives/src/sapling.rs @@ -562,7 +562,7 @@ pub mod testing { ) -> Note { Note { value: value.into(), - g_d: addr.g_d().unwrap(), // this unwrap is safe because arb_payment_address always generates an address witha valid g_d + g_d: addr.g_d().unwrap(), // this unwrap is safe because arb_payment_address always generates an address with a valid g_d pk_d: *addr.pk_d(), rseed } diff --git a/zcash_primitives/src/sapling/note_encryption.rs b/zcash_primitives/src/sapling/note_encryption.rs index 43831cdc3..fdfa070fb 100644 --- a/zcash_primitives/src/sapling/note_encryption.rs +++ b/zcash_primitives/src/sapling/note_encryption.rs @@ -159,7 +159,7 @@ impl Domain for SaplingDomain

{ ) -> Self::EphemeralPublicKey { // epk is an element of jubjub's prime-order subgroup, // but Self::EphemeralPublicKey is a full group element - // for efficency of encryption. The conversion here is fine + // for efficiency of encryption. The conversion here is fine // because the output of this function is only used for // encoding and the byte encoding is unaffected by the conversion. (note.g_d * esk).into() diff --git a/zcash_primitives/src/transaction/sighash.rs b/zcash_primitives/src/transaction/sighash.rs index 3463119a8..d37b0ed14 100644 --- a/zcash_primitives/src/transaction/sighash.rs +++ b/zcash_primitives/src/transaction/sighash.rs @@ -57,7 +57,7 @@ impl AsRef<[u8; 32]> for SignatureHash { } } -/// Addtional context that is needed to compute signature hashes +/// Additional context that is needed to compute signature hashes /// for transactions that include transparent inputs or outputs. pub trait TransparentAuthorizingContext: transparent::Authorization { /// Returns the list of all transparent input amounts, provided diff --git a/zcash_proofs/src/lib.rs b/zcash_proofs/src/lib.rs index 1479f54f9..a4688d24f 100644 --- a/zcash_proofs/src/lib.rs +++ b/zcash_proofs/src/lib.rs @@ -140,7 +140,7 @@ pub fn load_parameters( /// Parse Bls12 keys from bytes as serialized by [`Parameters::write`]. /// -/// This function will panic if it encounters unparseable data. +/// This function will panic if it encounters unparsable data. pub fn parse_parameters( spend_fs: R, output_fs: R,