Skip to main content

sign_device_approval

Function sign_device_approval 

Source
pub fn sign_device_approval(
    seed_hex: &str,
    node_id: &str,
    target: &str,
    sha256: &str,
    approval_id: &str,
    now_secs: i64,
    now_iso: &str,
) -> Result<SignedApproval, String>
Expand description

Signs an approval on the owner’s device for exactly one request. The lifetime is the hub’s own (APPROVAL_TTL_SECS); the nonce is fresh.