pub struct ShortId(/* private fields */);
Expand description
Short transaction IDs are used to represent a transaction without sending a full 256-bit hash.
Implementations§
source§impl ShortId
impl ShortId
source§impl ShortId
impl ShortId
sourcepub fn calculate_siphash_keys(header: &BlockHeader, nonce: u64) -> (u64, u64)
pub fn calculate_siphash_keys(header: &BlockHeader, nonce: u64) -> (u64, u64)
Calculate the SipHash24 keys used to calculate short IDs.
Trait Implementations§
source§impl<'de> Deserialize<'de> for ShortId
impl<'de> Deserialize<'de> for ShortId
source§fn deserialize<D: Deserializer<'de>>(d: D) -> Result<ShortId, D::Error>
fn deserialize<D: Deserializer<'de>>(d: D) -> Result<ShortId, D::Error>
Deserialize this value from the given Serde deserializer. Read more
source§impl Ord for ShortId
impl Ord for ShortId
source§impl PartialEq<ShortId> for ShortId
impl PartialEq<ShortId> for ShortId
source§impl PartialOrd<ShortId> for ShortId
impl PartialOrd<ShortId> for ShortId
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read moreimpl Copy for ShortId
impl Eq for ShortId
impl StructuralEq for ShortId
impl StructuralPartialEq for ShortId
Auto Trait Implementations§
impl RefUnwindSafe for ShortId
impl Send for ShortId
impl Sync for ShortId
impl Unpin for ShortId
impl UnwindSafe for ShortId
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