Skip to main content

Module command

Module command 

Source
Expand description

Signed commands to a machine (#88), without I/O: a device seals a command to the one-time key of a challenge the machine signed, and opens the machine’s signed reply. The channel that carries them is teter_client::command’s.

Structs§

Challenge
A challenge the machine signed.

Functions§

check_challenge
The challenge nonce and key, if signature is machine machine’s (whose public key is machine_key) of them.
open_reply
The outcome in machine machine’s reply to the command bound to nonce: checked against its signature by machine_key, and opened with account.
seal_command
command signed by account for machine and challenge, sealed to the challenge’s one-time key.