pub struct OwnershipProof {
pub proof: Vec<u8>,
pub owner: Vec<u8>,
pub scheme: Option<SignatureScheme>,
}Expand description
Proof of ownership for a Right.
On L1 chains (Bitcoin, Sui): this is the UTXO/Object ownership proof. On L2 chains (Aptos): this is the resource capability proof. On L3 chains (Ethereum): this is the signature from the owner.
Fields§
§proof: Vec<u8>The proof bytes (chain-specific format)
owner: Vec<u8>The owner identifier (address, pubkey, etc.)
scheme: Option<SignatureScheme>Signature scheme for cryptographic verification.
Encodes which signature scheme the proof field uses.
Trait Implementations§
Source§impl Clone for OwnershipProof
impl Clone for OwnershipProof
Source§fn clone(&self) -> OwnershipProof
fn clone(&self) -> OwnershipProof
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 OwnershipProof
impl Debug for OwnershipProof
Source§impl<'de> Deserialize<'de> for OwnershipProof
impl<'de> Deserialize<'de> for OwnershipProof
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 OwnershipProof
impl PartialEq for OwnershipProof
Source§impl Serialize for OwnershipProof
impl Serialize for OwnershipProof
impl Eq for OwnershipProof
impl StructuralPartialEq for OwnershipProof
Auto Trait Implementations§
impl Freeze for OwnershipProof
impl RefUnwindSafe for OwnershipProof
impl Send for OwnershipProof
impl Sync for OwnershipProof
impl Unpin for OwnershipProof
impl UnsafeUnpin for OwnershipProof
impl UnwindSafe for OwnershipProof
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