pub async fn rotate_device_key(
endpoint: &str,
api_key: &str,
signer: &dyn Signer,
device_id: &str,
source_id: &str,
) -> PhyTraceResult<Value>Expand description
Replace device device_id’s key with signer’s; the old key is
retired, so events signed before the rotation still verify.