Fix typos

This commit is contained in:
Dimitris Apostolou 2022-02-03 20:15:32 +02:00
parent e63979e80a
commit e600d7b917
No known key found for this signature in database
GPG Key ID: 4B5D20E938204A8A
4 changed files with 4 additions and 4 deletions

View File

@ -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
}

View File

@ -159,7 +159,7 @@ impl<P: consensus::Parameters> Domain for SaplingDomain<P> {
) -> 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()

View File

@ -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

View File

@ -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<R: io::Read>(
spend_fs: R,
output_fs: R,