w3c / vc-di-ecdsa-test-suite

Interoperability Test Suite for Data Integrity Ecdsa Signatures.
https://w3c.github.io/vc-di-ecdsa-test-suite/
BSD 3-Clause "New" or "Revised" License
5 stars 6 forks source link

Check for error before result in verifier success assertion. #52

Closed aljones15 closed 6 months ago

aljones15 commented 6 months ago

so it turns out the verificationSuccess assertion checks for a result first and an error second. The issue is checking for the error first means the error throw from the verifier ends up in the report vs just getting received undefined. As the error contains more information, I have placed it first.