pub fn stamp_valid(stamp: &[u8], target_cost: u8, workblock: &[u8]) -> bool
Check if a stamp meets the target cost.
Returns true if SHA256(workblock + stamp) has >= target_cost leading zero bits.