Skip to main content

device_proof_message

Function device_proof_message 

Source
pub fn device_proof_message(server: &[u8; 32], nonce: &[u8; 32]) -> Vec<u8> ⓘ
Expand description

What a device signs to prove to one server that it holds its key: DEVICE_PROOF_DOMAIN, the server’s endpoint id (32 bytes), then the server’s nonce (32). Naming the server keeps a proof made for one from being replayed to another; the nonce, one the server just chose, keeps it from being replayed to the same one.