Skip to main content

stamp_valid

Function stamp_valid 

Source
pub fn stamp_valid(stamp: &[u8], target_cost: u8, workblock: &[u8]) -> bool
Expand description

Check if a stamp meets the target cost.

Returns true if SHA256(workblock + stamp) has >= target_cost leading zero bits.