# XV-SA-04

Source: https://xmlvalid.com/rules/XV-SA-04

> The digest of the signed properties in the signature (…) is not that of xades:SignedProperties (…).

- Level: error
- Rule sets: ZATCA cryptographic stamp and QR code checks Security Features Implementation Standards 1.1, SDK 3.4.6
- Context: `/*[ext:UBLExtensions//ds:Signature]`
- Test: `not($properties and $propertiesReference) or normalize-space($propertiesReference/ds:DigestValue) = js:xvDigest(sa:c14n($properties, map{}, true()), 'base64hex')`

Validate a document against these rules: https://xmlvalid.com/validate
