Struct epic_keychain::BlindSum
source · [−]pub struct BlindSum {
pub positive_key_ids: Vec<ValueExtKeychainPath>,
pub negative_key_ids: Vec<ValueExtKeychainPath>,
pub positive_blinding_factors: Vec<BlindingFactor>,
pub negative_blinding_factors: Vec<BlindingFactor>,
}
Expand description
Accumulator to compute the sum of blinding factors. Keeps track of each factor as well as the “sign” with which they should be combined.
Fields
positive_key_ids: Vec<ValueExtKeychainPath>
negative_key_ids: Vec<ValueExtKeychainPath>
positive_blinding_factors: Vec<BlindingFactor>
negative_blinding_factors: Vec<BlindingFactor>
Implementations
sourceimpl BlindSum
impl BlindSum
pub fn add_key_id(self, path: ValueExtKeychainPath) -> BlindSum
pub fn sub_key_id(self, path: ValueExtKeychainPath) -> BlindSum
sourcepub fn add_blinding_factor(self, blind: BlindingFactor) -> BlindSum
pub fn add_blinding_factor(self, blind: BlindingFactor) -> BlindSum
Adds the provided key to the sum of blinding factors.
sourcepub fn sub_blinding_factor(self, blind: BlindingFactor) -> BlindSum
pub fn sub_blinding_factor(self, blind: BlindingFactor) -> BlindSum
Subtracts the provided key to the sum of blinding factors.
Trait Implementations
impl StructuralPartialEq for BlindSum
Auto Trait Implementations
impl RefUnwindSafe for BlindSum
impl Send for BlindSum
impl Sync for BlindSum
impl Unpin for BlindSum
impl UnwindSafe for BlindSum
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
impl<T> CloneAny for T where
T: Any + Clone,
impl<T> CloneAny for T where
T: Any + Clone,
fn clone_any(&self) -> Box<dyn CloneAny + 'static, Global>
fn clone_any_send(&self) -> Box<dyn CloneAny + Send + 'static, Global> where
T: Send,
fn clone_any_sync(&self) -> Box<dyn CloneAny + Sync + 'static, Global> where
T: Sync,
fn clone_any_send_sync(
&self
) -> Box<dyn CloneAny + Sync + Send + 'static, Global> where
T: Send + Sync,
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcefn clone_into(&self, target: &mut T)
fn clone_into(&self, target: &mut T)
🔬 This is a nightly-only experimental API. (
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more