TBD54566975 / web5-spec

https://tbd54566975.github.io/sdk-report-runner/
Apache License 2.0
6 stars 5 forks source link

Return a consistent result from signature verification methods #155

Open frankhinek opened 2 months ago

frankhinek commented 2 months ago

Context

At present, signature verification is handled inconsistently across Web5 SDKs:

The associated test vectors for ES256K/secp256k1 and Ed25519 indicate that a boolean false should be returned and that no error should be raised/returned.

Work to be done

  1. Come to a decision on whether a boolean or error raise should occur when a signature fails the verification check.
  2. Update the associated test vectors.
  3. Update the SDKs that need to be modified accordingly.
  4. Ensure all SDKs pass the test vectors.