pub struct ParticipantData {
pub id: u64,
pub public_blind_excess: PublicKey,
pub public_nonce: PublicKey,
pub part_sig: Option<Signature>,
pub message: Option<String>,
pub message_sig: Option<Signature>,
}Expand description
Public data for each participant in the slate
Fields§
§id: u64Id of participant in the transaction. (For now, 0=sender, 1=rec)
public_blind_excess: PublicKeyPublic key corresponding to private blinding factor
public_nonce: PublicKeyPublic key corresponding to private nonce
part_sig: Option<Signature>Public partial signature
message: Option<String>A message for other participants
message_sig: Option<Signature>Signature, created with private key corresponding to ‘public_blind_excess’
Implementations§
source§impl ParticipantData
impl ParticipantData
sourcepub fn is_complete(&self) -> bool
pub fn is_complete(&self) -> bool
A helper to return whether this participant has completed round 1 and round 2; Round 1 has to be completed before instantiation of this struct anyhow, and for each participant consists of: -Inputs added to transaction -Outputs added to transaction -Public signature nonce chosen and added -Public contribution to blinding factor chosen and added Round 2 can only be completed after all participants have performed round 1, and adds: -Part sig is filled out
Trait Implementations§
source§impl Clone for ParticipantData
impl Clone for ParticipantData
source§fn clone(&self) -> ParticipantData
fn clone(&self) -> ParticipantData
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moresource§impl Debug for ParticipantData
impl Debug for ParticipantData
source§impl<'de> Deserialize<'de> for ParticipantData
impl<'de> Deserialize<'de> for ParticipantData
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
source§impl From<&ParticipantData> for ParticipantDataV3
impl From<&ParticipantData> for ParticipantDataV3
source§fn from(data: &ParticipantData) -> ParticipantDataV3
fn from(data: &ParticipantData) -> ParticipantDataV3
source§impl From<&ParticipantDataV3> for ParticipantData
impl From<&ParticipantDataV3> for ParticipantData
source§fn from(data: &ParticipantDataV3) -> ParticipantData
fn from(data: &ParticipantDataV3) -> ParticipantData
Auto Trait Implementations§
impl RefUnwindSafe for ParticipantData
impl Send for ParticipantData
impl Sync for ParticipantData
impl Unpin for ParticipantData
impl UnwindSafe for ParticipantData
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
§impl<T> CloneAny for T
impl<T> CloneAny for T
§impl<'a, T> DefaultFeatures<'a> for T
impl<'a, T> DefaultFeatures<'a> for T
§fn clone_boxed(&self) -> Box<dyn DefaultFeatures<'a>>
fn clone_boxed(&self) -> Box<dyn DefaultFeatures<'a>>
Box
behind a trait object of this trait.§fn self_address_mut(&mut self) -> *mut ()
fn self_address_mut(&mut self) -> *mut ()
self. Read more§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
§impl<'a, T> NonSyncFeatures<'a> for Twhere
T: 'a + Clone,
impl<'a, T> NonSyncFeatures<'a> for Twhere
T: 'a + Clone,
§fn clone_boxed(&self) -> Box<dyn NonSyncFeatures<'a>>
fn clone_boxed(&self) -> Box<dyn NonSyncFeatures<'a>>
Box
behind a trait object of this trait.§fn self_address_mut(&mut self) -> *mut ()
fn self_address_mut(&mut self) -> *mut ()
self. Read more§impl<T> SafeBorrow<T> for Twhere
T: ?Sized,
impl<T> SafeBorrow<T> for Twhere
T: ?Sized,
§fn borrow_replacement(ptr: &T) -> &T
fn borrow_replacement(ptr: &T) -> &T
ptr, which was obtained from a prior call to Self::borrow(),
return a value with the same nominal lifetime which is guaranteed to
survive mutations to Self. Read more