How i Get the Right Hash?

From my experience, Zatca eInvoice SDK not work with linearized XML.
try to formatting your xml before signing.

Let see my code in this thread, maybe it will help…