Skip to content

Commit 90fdfe4

Browse files
authored
Merge pull request #504 from radik878/chore/use-dkg-aad-constant-in-try-add
chore: use DKG_AAD constant in DkgAccumulator::try_add
2 parents 7cc822b + 1119bf6 commit 90fdfe4

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

timeboost-types/src/decryption.rs

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -403,7 +403,6 @@ impl DkgAccumulator {
403403
return Ok(());
404404
}
405405

406-
let aad: &[u8; 3] = b"dkg";
407406
let vess = Vess::new_fast();
408407
let store = self.store.clone();
409408
let mode = self.mode.clone();
@@ -417,7 +416,7 @@ impl DkgAccumulator {
417416
store.sorted_keys(),
418417
bundle.vess_ct(),
419418
bundle.comm(),
420-
aad,
419+
DKG_AAD,
421420
)?;
422421
}
423422
AccumulatorMode::Resharing(combkey) => {
@@ -429,7 +428,7 @@ impl DkgAccumulator {
429428
store.sorted_keys(),
430429
bundle.vess_ct(),
431430
bundle.comm(),
432-
aad,
431+
DKG_AAD,
433432
*pub_share,
434433
)?;
435434
}

0 commit comments

Comments
 (0)