Skip to content

Commit

Permalink
Apply suggestions from code review
Browse files Browse the repository at this point in the history
Co-authored-by: Hernando Castano <HCastano@users.noreply.github.com>
  • Loading branch information
JesseAbram and HCastano authored Aug 27, 2024
1 parent 4a37dc5 commit 50e02c5
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions crates/threshold-signature-server/src/validator/api.rs
Original file line number Diff line number Diff line change
Expand Up @@ -187,9 +187,9 @@ pub async fn new_reshare(
Ok(StatusCode::OK)
}

// HTTP POST endpoint called by the off-chain worker (propagation pallet) after network reshare.
/// HTTP POST endpoint called by the off-chain worker (propagation pallet) after a network key reshare.
///
/// This roatates network key.
/// This rotates network key, deleting the previous network parent key.
#[tracing::instrument(skip_all)]
pub async fn rotate_network_key(
State(app_state): State<AppState>,
Expand Down Expand Up @@ -285,8 +285,8 @@ pub async fn validate_new_reshare(
Ok(())
}

/// Validates rotate_network_key
/// Checks the chain that the reshare was completed recently
/// Checks the chain that the reshare was completed recently.
///
/// We only care that this happens after a reshare so we just check that message isn't stale
pub async fn validate_rotate_network_key(
api: &OnlineClient<EntropyConfig>,
Expand Down

0 comments on commit 50e02c5

Please sign in to comment.