pub struct SealRef {
pub seal_id: Vec<u8>,
pub nonce: Option<u64>,
}Expand description
A reference to a single-use seal
The concrete meaning is chain-specific:
- Bitcoin: UTXO OutPoint
- Ethereum: Contract address + storage slot
- Sui: Object ID
- Aptos: Resource address + key
Fields§
§seal_id: Vec<u8>Chain-specific seal identifier
nonce: Option<u64>Optional nonce for replay resistance
Implementations§
Source§impl SealRef
impl SealRef
Sourcepub fn new_unchecked(seal_id: Vec<u8>, nonce: Option<u64>) -> Self
pub fn new_unchecked(seal_id: Vec<u8>, nonce: Option<u64>) -> Self
Create a new SealRef without validation.
§Safety
This bypasses size validation. Use only for internal protocol conversions where the input is already known to be valid.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for SealRef
impl<'de> Deserialize<'de> for SealRef
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
impl Eq for SealRef
impl StructuralPartialEq for SealRef
Auto Trait Implementations§
impl Freeze for SealRef
impl RefUnwindSafe for SealRef
impl Send for SealRef
impl Sync for SealRef
impl Unpin for SealRef
impl UnsafeUnpin for SealRef
impl UnwindSafe for SealRef
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