Skip to content

Commit

Permalink
add aux info back into key
Browse files Browse the repository at this point in the history
  • Loading branch information
JesseAbram committed Jul 16, 2024
1 parent 0b31b48 commit 93c2a7e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions crates/threshold-signature-server/src/user/api.rs
Original file line number Diff line number Diff line change
Expand Up @@ -299,7 +299,7 @@ async fn setup_dkg(
.map_err(|_| UserErr::AddressConversionError("Invalid Length".to_string()))?;
let sig_request_address = SubxtAccountId32(*address_slice);

let (key_share, _aux_info) = do_dkg(
let (key_share, aux_info) = do_dkg(
&data.validators_info,
&signer,
x25519_secret_key,
Expand All @@ -316,7 +316,7 @@ async fn setup_dkg(
}
.to_string();

let serialized_key_share = key_serialize(&key_share)
let serialized_key_share = key_serialize(&(key_share, aux_info))
.map_err(|_| UserErr::KvSerialize("Kv Serialize Error".to_string()))?;

let reservation = app_state.kv_store.kv().reserve_key(string_verifying_key.clone()).await?;
Expand Down

0 comments on commit 93c2a7e

Please sign in to comment.