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?
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
Thank you for your assistance @sergei.shishov , much appreciated.