diff --git a/crates/threshold-signature-server/src/node_info/api.rs b/crates/threshold-signature-server/src/node_info/api.rs index 30b98b5b6..52aa40f73 100644 --- a/crates/threshold-signature-server/src/node_info/api.rs +++ b/crates/threshold-signature-server/src/node_info/api.rs @@ -45,7 +45,7 @@ pub struct TssPublicKeys { pub async fn info(State(app_state): State) -> Result, GetInfoError> { let (signer, x25519_secret) = get_signer_and_x25519_secret(&app_state.kv_store).await?; let tss_account = AccountId32(signer.signer().public().0); - let x25519_public_key = x25519_dalek::PublicKey::from(&x25519_secret).as_bytes().clone(); + let x25519_public_key = *x25519_dalek::PublicKey::from(&x25519_secret).as_bytes(); Ok(Json(TssPublicKeys { x25519_public_key, tss_account })) }