Skip to main content

hash_meets_difficulty

Function hash_meets_difficulty 

Source
pub fn hash_meets_difficulty(
    challenge: &[u8; 32],
    authority: &Pubkey,
    nonce: u64,
    min_difficulty: u64,
) -> bool
Expand description

Client-side hash verification (identical logic to the on-chain program).