Trait grin_core::core::id::ShortIdentifiable

source ·
pub trait ShortIdentifiable {
    // Required method
    fn short_id(&self, hash: &Hash, nonce: u64) -> ShortId;
}
Expand description

A trait for types that have a short_id (inputs/outputs/kernels)

Required Methods§

source

fn short_id(&self, hash: &Hash, nonce: u64) -> ShortId

The short_id of a kernel uses a hash built from the block_header and a connection specific nonce to minimize the effect of collisions.

Implementors§