Merge pull request #285 from matter-labs/missing_recoverid_two

fix(verify-era-proof-attestation): handle missing RecoveryId signatures
This commit is contained in:
Harald Hoyer 2025-03-03 10:47:59 +01:00 committed by GitHub
commit 89145514b0
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -55,7 +55,12 @@ impl TeeProof {
if self.signature.len() == 64 {
info!("Signature is missing RecoveryId!");
// Fallback for missing RecoveryId
for rec_id in [RecoveryId::Zero, RecoveryId::One] {
for rec_id in [
RecoveryId::Zero,
RecoveryId::One,
RecoveryId::Two,
RecoveryId::Three,
] {
let Ok(sig) = RecoverableSignature::from_compact(&sig_vec, rec_id) else {
continue;
};