# QR Code additional Tags 6 - 9

**URL:** <https://zatca1.discourse.group/t/qr-code-additional-tags-6-9/1189>\
**Category:** QR code\
**Created:** [January 25, 2024, 10:38am UTC](https://zatca1.discourse.group/t/qr-code-additional-tags-6-9/1189 "2024-01-25T10:38:07Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![LindieBotha](https://avatars.discourse-cdn.com/v4/letter/l/ee59a6/32.png) [@LindieBotha](https://zatca1.discourse.group/u/LindieBotha)\
**Post date:** [January 25, 2024, 10:38am UTC](https://zatca1.discourse.group/t/qr-code-additional-tags-6-9/1189/1 "2024-01-25T10:38:08Z")

</div>

Good day, I have a few questions around tags 6-9 on the QR code.

**Tag6** Hash of XML electronic invoice or credit/debit note: Will this be the Hash of the previous invoice or current invoice and what must the structure of this hash be?

**Tag 7** Elliptic Curve Digital Signature Algorithm (ECDSA) signature: Is this the algorithm that was used to produce the CSR?

**Tag 8** ECDSA public key: Is this the public key that was used to generate the CSR?

**Tag 9** Is this the Production CSID?

---

<div class="post-metadata">

**Author:** ![sergei.shishov](https://avatars.discourse-cdn.com/v4/letter/s/f0a364/32.png) [@sergei.shishov](https://zatca1.discourse.group/u/sergei.shishov)\
**Post date:** [January 27, 2024, 12:34pm UTC](https://zatca1.discourse.group/t/qr-code-additional-tags-6-9/1189/2 "2024-01-27T12:34:03Z")

</div>

Hi @LindieBotha

Let me try to help you here:

> **Tag6** Hash of XML electronic invoice or credit/debit note: Will this be the Hash of the previous invoice or current invoice and what must the structure of this hash be?

It is the same `hash` of the document (invoice), which you will send along with the `XML` and `UUID` during reporting/clearance phase. What is the format and how to calculate it, you have to read the `PDF documentation about XML security implementations`.

> **Tag 7** Elliptic Curve Digital Signature Algorithm (ECDSA) signature: Is this the algorithm that was used to produce the CSR?

When you generate `CSR`, you have also generated `PrivateKey`. Then this `PrivateKey` and `Production CSID` are used to generate `<UBLExtensions>` tags which contains signature value. This value should be specified here.

> Tag 8 ECDSA public key: Is this the public key that was used to generate the CSR?

We are deriving `PublicKey` from `PrivateKey` which you generated during creation of `CSR`. In the documentation is it stated the same, that the `PublicKey` should be extracted from `PrivateKey` as usually you have both of them.

> Tag 9 Is this the Production CSID?

It is `Production CSID` signature. The `certificate` object has signature value, which should be placed here…

Hopefully I could help you in some way.

Best regards,  
Sergei

---

<div class="post-metadata">

**Author:** ![LindieBotha](https://avatars.discourse-cdn.com/v4/letter/l/ee59a6/32.png) [@LindieBotha](https://zatca1.discourse.group/u/LindieBotha)\
**Post date:** [January 31, 2024, 5:52am UTC](https://zatca1.discourse.group/t/qr-code-additional-tags-6-9/1189/3 "2024-01-31T05:52:32Z")

</div>

Thank you for your assistance @sergei.shishov , much appreciated.
