Skip to main content

decode_challenge

Function decode_challenge 

Source
pub fn decode_challenge(payload: &[u8]) -> Result<[u8; 32], BadChallenge>
Expand description

The nonce of a node’s challenge payload (after the length prefix), if the node speaks CLIENT_PROTOCOL_VERSION. The one parser of the challenge’s layout, for a client’s handshake and for tests that read a node’s challenge by hand.