Use an empty key for Batch's SignId

This commit is contained in:
Luke Parker
2023-08-24 20:35:50 -04:00
parent bccdabb53d
commit ea8e26eca3
5 changed files with 18 additions and 21 deletions

View File

@@ -6,7 +6,6 @@ use rand_core::OsRng;
use scale::Encode;
use transcript::{Transcript, RecommendedTranscript};
use ciphersuite::group::GroupEncoding;
use frost::{
curve::Ristretto,
ThresholdKeys,
@@ -179,7 +178,9 @@ impl<D: Db> SubstrateSigner<D> {
// Update the attempt number
self.attempt.insert(id, attempt);
let id = SignId { key: self.keys.group_key().to_bytes().to_vec(), id, attempt };
// Doesn't set key since there's only one key active at a time
// TODO: BatchSignId
let id = SignId { key: vec![], id, attempt };
info!("signing batch {} #{}", hex::encode(id.id), id.attempt);
// If we reboot mid-sign, the current design has us abort all signs and wait for latter