Open-Attestation / open-attestation

Meta framework for providing digital provenance and integrity to documents.
https://openattestation.com
Apache License 2.0
54 stars 18 forks source link

chore: sign document should be clear on what errors it could throw, export of v4 verify shd be more explicit #280

Closed phanshiyu closed 5 months ago

phanshiyu commented 5 months ago

Why

its possible for signing to throw errors when network is down, signer or keys are misconfigured

What

  1. Added a new CouldNotSignDocumentError and exported it
  2. verify is now exported as verifySignature