diff --git a/src/bundle.rs b/src/bundle.rs index 10adbd5f..96964a02 100644 --- a/src/bundle.rs +++ b/src/bundle.rs @@ -139,9 +139,9 @@ pub struct Bundle { actions: NonEmpty>, /// Orchard-specific transaction-level flags for this bundle. flags: Flags, - /// The net value moved into or out of the Orchard shielded pool. + /// The net value moved out of the Orchard shielded pool. /// - /// This is the sum of Orchard spends minus the sum Orchard outputs. + /// This is the sum of Orchard spends minus the sum of Orchard outputs. value_balance: ValueSum, /// The root of the Orchard commitment tree that this bundle commits to. anchor: Anchor, @@ -203,7 +203,7 @@ impl Bundle { } /// Transitions this bundle from one authorization state to another. - pub fn map( + pub fn authorize( self, mut spend_auth: impl FnMut(&T, T::SpendAuth) -> U::SpendAuth, step: impl FnOnce(T) -> U, @@ -221,7 +221,7 @@ impl Bundle { } /// Transitions this bundle from one authorization state to another. - pub fn try_map( + pub fn try_authorize( self, mut spend_auth: impl FnMut(&T, T::SpendAuth) -> Result, step: impl FnOnce(T) -> Result,