pub struct PartySignature {
pub signature_id: SignatureId,
pub agreement_id: AgreementId,
pub party_ref: PartyRef,
pub role: AgreementRole,
pub signature_type: SignatureType,
pub signature: Vec<u8>,
pub signer_key: [u8; 32],
pub signed_at: Timestamp,
pub recorded_at_height: BlockHeight,
pub witness_attestation_id: Option<AttestationId>,
}Expand description
Party signature record
Fields§
§signature_id: SignatureIdSignature identifier
agreement_id: AgreementIdAgreement being signed
party_ref: PartyRefParty reference (commitment or subject)
role: AgreementRoleRole being signed for
signature_type: SignatureTypeSignature type
signature: Vec<u8>The actual signature bytes
signer_key: [u8; 32]Signer’s public key or commitment
signed_at: TimestampSigning timestamp
recorded_at_height: BlockHeightBlock height when recorded
witness_attestation_id: Option<AttestationId>Optional: witness or notary attestation
Implementations§
Source§impl PartySignature
impl PartySignature
Sourcepub fn generate_id(
agreement_id: &AgreementId,
party_ref: &PartyRef,
role: AgreementRole,
nonce: &[u8; 32],
) -> SignatureId
pub fn generate_id( agreement_id: &AgreementId, party_ref: &PartyRef, role: AgreementRole, nonce: &[u8; 32], ) -> SignatureId
Generate signature ID
Sourcepub fn generate_signing_message(
agreement_id: &AgreementId,
agreement_commitment: &[u8; 32],
party_ref: &PartyRef,
role: AgreementRole,
policy_id: &PolicyId,
) -> [u8; 32]
pub fn generate_signing_message( agreement_id: &AgreementId, agreement_commitment: &[u8; 32], party_ref: &PartyRef, role: AgreementRole, policy_id: &PolicyId, ) -> [u8; 32]
Generate the message to be signed (domain-separated)
Trait Implementations§
Source§impl Clone for PartySignature
impl Clone for PartySignature
Source§fn clone(&self) -> PartySignature
fn clone(&self) -> PartySignature
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for PartySignature
impl Debug for PartySignature
Source§impl<'de> Deserialize<'de> for PartySignature
impl<'de> Deserialize<'de> for PartySignature
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>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for PartySignature
impl PartialEq for PartySignature
Source§fn eq(&self, other: &PartySignature) -> bool
fn eq(&self, other: &PartySignature) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for PartySignature
impl Serialize for PartySignature
impl Eq for PartySignature
impl StructuralPartialEq for PartySignature
Auto Trait Implementations§
impl Freeze for PartySignature
impl RefUnwindSafe for PartySignature
impl Send for PartySignature
impl Sync for PartySignature
impl Unpin for PartySignature
impl UnsafeUnpin for PartySignature
impl UnwindSafe for PartySignature
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
Mutably borrows from an owned value. Read more