fix(verify-era-proof-attestation): handle missing RecoveryId signatures

- add `RecoveryId::Two` and `RecoveryId::Three`

Signed-off-by: Harald Hoyer <harald@matterlabs.dev>
This commit is contained in:
Harald Hoyer 2025-02-28 16:50:22 +01:00
parent 736fe10200
commit a6ea98a096
Signed by: harald
GPG key ID: F519A1143B3FBE32

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;
};