Expand description
§Consensus Core
This crate implements primitives used in the Kaspa node consensus processing.
Modules§
- Network Types
- Transaction
Structs§
hashes::Hash
writes 4 u64s so we just use the last one as the hash here- @category General
Traits§
Type Aliases§
- This HashMap skips the hashing of the key and uses the key directly as the hash. Should only be used for block hashes that have correct DAA, otherwise it is susceptible to DOS attacks via hash collisions.
- Same as
BlockHashMap
but aHashSet
. - Integer type for accumulated PoW of blue blocks. We expect no more than 2^128 work in a single block (btc has ~2^80), and no more than 2^64 overall blocks, so 2^192 is definitely a justified upper-bound.
- Map from Block hash to K type
- The type used to represent the GHOSTDAG K parameter