Skip to main content

check_challenge

Function check_challenge 

Source
pub fn check_challenge(
    machine: &str,
    machine_key: &[u8],
    nonce: Vec<u8>,
    key: Vec<u8>,
    signature: &[u8],
) -> Option<Challenge>
Expand description

The challenge nonce and key, if signature is machine machine’s (whose public key is machine_key) of them.