Skip to content

Commit

Permalink
Merge branch 'main' into feat/require-all-signatures-for-rotate-keys
Browse files Browse the repository at this point in the history
  • Loading branch information
cylewitruk committed Feb 5, 2025
2 parents d30a0c7 + dc219d7 commit f350a7f
Showing 1 changed file with 8 additions and 5 deletions.
13 changes: 8 additions & 5 deletions signer/src/transaction_signer.rs
Original file line number Diff line number Diff line change
Expand Up @@ -665,9 +665,12 @@ where
"signer reports successful dkg round"
);
}
DkgStatus::Failure(fail) => {
// TODO(#414): handle DKG failure
tracing::warn!(wsts_dkg_status = "failure", reason = ?fail, "signer reports failed dkg round");
DkgStatus::Failure(reason) => {
tracing::warn!(
wsts_dkg_status = "failure",
?reason,
"signer reports failed DKG round"
);
}
}
}
Expand Down Expand Up @@ -907,7 +910,7 @@ where
.into();

if *new_key != current_key {
tracing::warn!("aggregate key mismatch for rotate-key verification signing");
tracing::warn!("aggregate key mismatch for DKG verification signing");
return Err(Error::AggregateKeyMismatch(
Box::new(current_key),
Box::new(*new_key),
Expand All @@ -918,7 +921,7 @@ where
tracing::warn!(
data = %hex::encode(message),
data_len = message.len(),
"data received for rotate-key verification signing does not match current bitcoin chain tip block hash"
"data received for DKG verification signing does not match current bitcoin chain tip block hash"
);
return Err(Error::InvalidSigningOperation);
}
Expand Down

0 comments on commit f350a7f

Please sign in to comment.