Fix typos
This commit is contained in:
parent
e63979e80a
commit
e600d7b917
|
@ -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
|
||||
}
|
||||
|
|
|
@ -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()
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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,
|
||||
|
|
Loading…
Reference in New Issue