pub struct CashuProofSignature {
pub secret: String,
pub signature: String,
}Expand description
Mostro’s P_M signature for a single escrowed proof.
Under NUT-11 SIG_INPUTS each input proof carries its own witness with a
signature over that proof’s own secret, so a Cashu token split across
several denominations needs one signature per proof. The dispute winner
matches each signature to its proof by secret when populating the
per-proof witnesses and assembling the mint swap. See
Payload::CashuSignatures.
Fields§
§secret: StringNUT-11 secret of the proof this signature applies to, exactly as it appears in the escrowed token. Used to match the signature to its proof.
signature: StringMostro’s P_M signature (hex) over secret, to be inserted into that
proof’s NUT-11 witness.
Implementations§
Source§impl CashuProofSignature
impl CashuProofSignature
Sourcepub fn new(secret: String, signature: String) -> Self
pub fn new(secret: String, signature: String) -> Self
Create a new CashuProofSignature.
Trait Implementations§
Source§impl Clone for CashuProofSignature
impl Clone for CashuProofSignature
Source§fn clone(&self) -> CashuProofSignature
fn clone(&self) -> CashuProofSignature
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 CashuProofSignature
impl Debug for CashuProofSignature
Source§impl<'de> Deserialize<'de> for CashuProofSignature
impl<'de> Deserialize<'de> for CashuProofSignature
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 CashuProofSignature
impl PartialEq for CashuProofSignature
Source§fn eq(&self, other: &CashuProofSignature) -> bool
fn eq(&self, other: &CashuProofSignature) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for CashuProofSignature
impl Serialize for CashuProofSignature
impl Eq for CashuProofSignature
impl StructuralPartialEq for CashuProofSignature
Auto Trait Implementations§
impl Freeze for CashuProofSignature
impl RefUnwindSafe for CashuProofSignature
impl Send for CashuProofSignature
impl Sync for CashuProofSignature
impl Unpin for CashuProofSignature
impl UnsafeUnpin for CashuProofSignature
impl UnwindSafe for CashuProofSignature
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more