pub struct SignedReceipt {
pub receipt: Receipt,
pub signatures: Signatures,
}Expand description
Signed receipt
Fields§
§receipt: ReceiptThe underlying receipt
signatures: SignaturesSignatures
Implementations§
Source§impl SignedReceipt
impl SignedReceipt
Sourcepub fn sign_with(receipt: Receipt, signer: &dyn Signer) -> Result<Self>
pub fn sign_with(receipt: Receipt, signer: &dyn Signer) -> Result<Self>
Sign a receipt with an abstract signer (e.g., a TPM-backed signer).
Sourcepub fn add_cosigner(&mut self, keypair: &Keypair) -> Result<()>
pub fn add_cosigner(&mut self, keypair: &Keypair) -> Result<()>
Add co-signer signature
Sourcepub fn add_cosigner_with(&mut self, signer: &dyn Signer) -> Result<()>
pub fn add_cosigner_with(&mut self, signer: &dyn Signer) -> Result<()>
Add co-signer signature with an abstract signer.
Sourcepub fn verify(&self, public_keys: &PublicKeySet) -> VerificationResult
pub fn verify(&self, public_keys: &PublicKeySet) -> VerificationResult
Verify all signatures
Trait Implementations§
Source§impl Clone for SignedReceipt
impl Clone for SignedReceipt
Source§fn clone(&self) -> SignedReceipt
fn clone(&self) -> SignedReceipt
Returns a duplicate of the value. Read more
1.0.0 · 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 SignedReceipt
impl Debug for SignedReceipt
Source§impl<'de> Deserialize<'de> for SignedReceipt
impl<'de> Deserialize<'de> for SignedReceipt
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
Auto Trait Implementations§
impl Freeze for SignedReceipt
impl RefUnwindSafe for SignedReceipt
impl Send for SignedReceipt
impl Sync for SignedReceipt
impl Unpin for SignedReceipt
impl UnsafeUnpin for SignedReceipt
impl UnwindSafe for SignedReceipt
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