[][src]Struct grin_keychain::BlindSum

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

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

impl BlindSum[src]

pub fn new() -> BlindSum[src]

Creates a new blinding factor sum.

pub fn add_key_id(self, path: ValueExtKeychainPath) -> BlindSum[src]

pub fn sub_key_id(self, path: ValueExtKeychainPath) -> BlindSum[src]

pub fn add_blinding_factor(self, blind: BlindingFactor) -> BlindSum[src]

Adds the provided key to the sum of blinding factors.

pub fn sub_blinding_factor(self, blind: BlindingFactor) -> BlindSum[src]

Subtracts the provided key to the sum of blinding factors.

Trait Implementations

impl Clone for BlindSum[src]

impl Debug for BlindSum[src]

impl PartialEq<BlindSum> for BlindSum[src]

impl StructuralPartialEq for BlindSum[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> CloneAny for T where
    T: Clone + Any

impl<T> DebugAny for T where
    T: Any + Debug

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> Same<T> for T

type Output = T

Should always be Self

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<T> UnsafeAny for T where
    T: Any