pub struct Outpoint {
pub transaction_hash: TransactionHash,
pub index: u32,
}Expand description
Canonical Handshake transaction output reference.
The all-zero transaction hash paired with u32::MAX is HSD’s null
outpoint. Name-state ownership and transaction inputs intentionally share
this type so an authenticated owner cannot be detached from its output
index by an adapter-specific representation.
Fields§
§transaction_hash: TransactionHashInternal little-endian transaction hash bytes used by Handshake wire encodings and HSD’s name tree.
index: u32Zero-based output index, or u32::MAX only for the null sentinel.
Implementations§
Trait Implementations§
impl Copy for Outpoint
impl Eq for Outpoint
impl StructuralPartialEq for Outpoint
Auto Trait Implementations§
impl Freeze for Outpoint
impl RefUnwindSafe for Outpoint
impl Send for Outpoint
impl Sync for Outpoint
impl Unpin for Outpoint
impl UnsafeUnpin for Outpoint
impl UnwindSafe for Outpoint
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