pow-buster 0.2.0

SIMD accelerated solver for mCaptcha/Anubis/Cerberus/go-away/Cap.js PoW challenges, features comprehensive coverage for Anubis challenge workflow.
Documentation
//! mCaptcha specific protocol structures.

use alloc::string::String;

#[derive(Clone, serde::Serialize, serde::Deserialize, Debug)]
/// mCaptcha PoW configuration
pub struct PoWConfig {
    /// the string to hash  
    pub string: String,
    /// the difficulty factor
    pub difficulty_factor: u32,
    /// the salt
    pub salt: String,
}

#[derive(Clone, serde::Serialize, Debug)]
/// mCaptcha PoW work unit definition
pub struct Work<'a> {
    /// the string to hash
    pub string: String,
    /// the result
    pub result: String,
    /// the nonce
    pub nonce: u64,
    /// the key
    pub key: &'a str,
}