Verify an envelope
Supply the envelope on its own to check that it is well formed and signed under a recognized
ML-DSA parameter set. Add the original document as well and Qsign also confirms that the file
still hashes to the digest sealed inside the envelope.
What gets checked
Envelope parsesThe payload must be a JSON object.
Required fieldsenvelope_id, signature_b64, public_key_b64 and algorithm must all be present.
Algorithm recognizedThe parameter set must be ML-DSA-87 or ML-DSA-65 under NIST FIPS 204.
Material decodesSignature and public key must be well formed base64 of the expected length.
Document bindingWhen a document is supplied its SHA3-256 digest must match the digest inside the envelope.