feat: memoize Signature polynomial decoding

This commit is contained in:
Austin Abell
2023-11-09 11:57:02 -05:00
committed by Bobbin Threadbare
parent fd480f827a
commit b7cb346e22
2 changed files with 28 additions and 14 deletions

View File

@@ -147,7 +147,12 @@ impl KeyPair {
};
if res == 0 {
Ok(Signature { sig, pk: self.public_key })
Ok(Signature {
sig,
pk: self.public_key,
pk_polynomial: Default::default(),
sig_polynomial: Default::default(),
})
} else {
Err(FalconError::SigGenerationFailed)
}