pub struct VtxoStatusAttestation { /* private fields */ }Expand description
Attestation for proving ownership of a VTXO when querying its status.
This is the simplest attestation - it only commits to the VTXO ID itself, with no additional challenge data or context. It proves the user controls the VTXO and is authorised to query its status.
No additional unique or random challenge data is necessary here. We’re not concerned with guarding against “replay” attacks as this attestation is for informational purposes and knowledge of this proof by a third party would indicate some kind of prior privacy leak for the user.
A malicious third party that can access this signed message would only be able to query the status of this specific VTXO.
Implementations§
Trait Implementations§
Source§impl Clone for VtxoStatusAttestation
impl Clone for VtxoStatusAttestation
Source§fn clone(&self) -> VtxoStatusAttestation
fn clone(&self) -> VtxoStatusAttestation
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 VtxoStatusAttestation
impl Debug for VtxoStatusAttestation
Source§impl<'de> Deserialize<'de> for VtxoStatusAttestation
impl<'de> Deserialize<'de> for VtxoStatusAttestation
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 Hash for VtxoStatusAttestation
impl Hash for VtxoStatusAttestation
Source§impl Ord for VtxoStatusAttestation
impl Ord for VtxoStatusAttestation
Source§fn cmp(&self, other: &VtxoStatusAttestation) -> Ordering
fn cmp(&self, other: &VtxoStatusAttestation) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for VtxoStatusAttestation
impl PartialEq for VtxoStatusAttestation
Source§impl PartialOrd for VtxoStatusAttestation
impl PartialOrd for VtxoStatusAttestation
Source§impl ProtocolEncoding for VtxoStatusAttestation
impl ProtocolEncoding for VtxoStatusAttestation
Source§fn encode<W: Write + ?Sized>(&self, writer: &mut W) -> Result<(), Error>
fn encode<W: Write + ?Sized>(&self, writer: &mut W) -> Result<(), Error>
Encode the object into the writer.
Source§fn decode<R: Read + ?Sized>(
reader: &mut R,
) -> Result<Self, ProtocolDecodingError>
fn decode<R: Read + ?Sized>( reader: &mut R, ) -> Result<Self, ProtocolDecodingError>
Decode the object from the writer.
Source§fn deserialize(byte_slice: &[u8]) -> Result<Self, ProtocolDecodingError>
fn deserialize(byte_slice: &[u8]) -> Result<Self, ProtocolDecodingError>
Deserialize object from the given byte slice.
Source§fn serialize_hex(&self) -> String
fn serialize_hex(&self) -> String
Serialize the object to a lowercase hex string.
Source§fn deserialize_hex(hex_str: &str) -> Result<Self, ProtocolDecodingError>
fn deserialize_hex(hex_str: &str) -> Result<Self, ProtocolDecodingError>
Deserialize object from hex slice.
Source§impl Serialize for VtxoStatusAttestation
impl Serialize for VtxoStatusAttestation
impl Copy for VtxoStatusAttestation
impl Eq for VtxoStatusAttestation
impl StructuralPartialEq for VtxoStatusAttestation
Auto Trait Implementations§
impl Freeze for VtxoStatusAttestation
impl RefUnwindSafe for VtxoStatusAttestation
impl Send for VtxoStatusAttestation
impl Sync for VtxoStatusAttestation
impl Unpin for VtxoStatusAttestation
impl UnsafeUnpin for VtxoStatusAttestation
impl UnwindSafe for VtxoStatusAttestation
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