mirror of
https://github.com/matter-labs/teepot.git
synced 2025-07-21 15:13:56 +02:00
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:
parent
736fe10200
commit
a6ea98a096
1 changed files with 6 additions and 1 deletions
|
@ -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;
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue