trusteddomainproject / OpenARC

Open source ARC implementation
BSD 2-Clause "Simplified" License
135 stars 45 forks source link

Behavior when ARC Set exceeds 50 #185

Open simotuki11 opened 2 weeks ago

simotuki11 commented 2 weeks ago

The following is about the verification process.

Verification is performed even if the ARC Set is 51. We were expecting the verification result to be fail for 51 items, but the verification result was pass.

RFC8617 defines it as follows: The maximum number of ARC Sets that can be attached to a message is 50. If more than the maximum number exist, the Chain Validation Status is "fail", and the algorithm stops here.

flowerysong commented 2 weeks ago

Fixed in https://github.com/flowerysong/OpenARC/commit/2d450997221830ee8fd0b1a4665610c57dab2c3b