Patch for previous commit

This commit is contained in:
Luke Parker
2022-05-17 19:51:04 -04:00
parent fd0fd77cf5
commit 3a13f80bdd
3 changed files with 7 additions and 6 deletions

View File

@@ -141,7 +141,8 @@ impl StateMachine for TransactionMachine {
let mut serialized = vec![];
for (i, clsag) in self.clsags.iter_mut().enumerate() {
let preprocess = clsag.preprocess(rng)?;
self.our_images[i] += CompressedEdwardsY(preprocess[0 .. 32].try_into().unwrap()).decompress().unwrap();
// First 64 bytes are FROST's commitments
self.our_images[i] += CompressedEdwardsY(preprocess[64 .. 96].try_into().unwrap()).decompress().unwrap();
serialized.extend(&preprocess);
}