Skip to content

Commit

Permalink
return operation result from run_sign
Browse files Browse the repository at this point in the history
  • Loading branch information
xoloki committed Oct 22, 2024
1 parent 0016b24 commit 56e4909
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/state_machine/coordinator/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -718,7 +718,7 @@ pub mod test {
signers: &mut Vec<Signer<SignerType>>,
msg: &Vec<u8>,
signature_type: SignatureType,
) {
) -> OperationResult {
// Start a signing round
let message = coordinators
.first_mut()
Expand Down Expand Up @@ -818,6 +818,8 @@ pub mod test {
}
_ => panic!("Expected OperationResult"),
}

operation_results[0].clone()
}

pub fn run_dkg_sign<Coordinator: CoordinatorTrait, SignerType: SignerTrait>(
Expand Down
1 change: 1 addition & 0 deletions src/state_machine/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,7 @@ pub enum SignError {
}

/// Result of a DKG or sign operation
#[derive(Debug, Clone)]
pub enum OperationResult {
/// DKG succeeded with the wrapped public key
Dkg(Point),
Expand Down

0 comments on commit 56e4909

Please sign in to comment.