diff --git a/zcash_client_backend/src/fees/fixed.rs b/zcash_client_backend/src/fees/fixed.rs index ec4fef86d..69aed61f6 100644 --- a/zcash_client_backend/src/fees/fixed.rs +++ b/zcash_client_backend/src/fees/fixed.rs @@ -17,7 +17,7 @@ use super::{ #[cfg(feature = "orchard")] use super::orchard as orchard_fees; -/// A change strategy that and proposes change as a single output to the most current supported +/// A change strategy that proposes change as a single output to the most current supported /// shielded pool and delegates fee calculation to the provided fee rule. pub struct SingleOutputChangeStrategy { fee_rule: FixedFeeRule, diff --git a/zcash_client_backend/src/fees/zip317.rs b/zcash_client_backend/src/fees/zip317.rs index fe08501e6..f09f50e9e 100644 --- a/zcash_client_backend/src/fees/zip317.rs +++ b/zcash_client_backend/src/fees/zip317.rs @@ -21,7 +21,7 @@ use super::{ #[cfg(feature = "orchard")] use super::orchard as orchard_fees; -/// A change strategy that and proposes change as a single output to the most current supported +/// A change strategy that proposes change as a single output to the most current supported /// shielded pool and delegates fee calculation to the provided fee rule. pub struct SingleOutputChangeStrategy { fee_rule: Zip317FeeRule, diff --git a/zcash_keys/src/encoding.rs b/zcash_keys/src/encoding.rs index c95edc962..aff24eb13 100644 --- a/zcash_keys/src/encoding.rs +++ b/zcash_keys/src/encoding.rs @@ -76,13 +76,24 @@ where } } +/// A trait for encoding and decoding Zcash addresses. pub trait AddressCodec
where
Self: std::marker::Sized,
{
type Error;
+ /// Encode a Zcash address.
+ ///
+ /// # Arguments
+ /// * `params` - The network the address is to be used on.
fn encode(&self, params: &P) -> String;
+
+ /// Decodes a Zcash address from its string representation.
+ ///
+ /// # Arguments
+ /// * `params` - The network the address is to be used on.
+ /// * `address` - The string representation of the address.
fn decode(params: &P, address: &str) -> Result