Evidence of each gesture
Each seat gets one row insignature_signer_evidence. It is created when the
first code is sent and completed when the seat signs; for an unattended seat
it is created when the seat signs:
The
signer_signed audit event repeats the signed hash, the document number
hash, the IP and the user agent and, when one exists, links the identity
stamp of the verification that was used.
Audit chain
Every engine event for a group is appended tosignature_provider_event. The
chain is the rows with seq; a consumer can store unchained markers in the
same table, and the verification ignores them:
Each event carries a contiguous
seq, the SHA-256 hash of its canonical
content and the prev_hash of the event before it. Changing a past event
breaks the chain at that event, and the verification reports where.
Sealing
Sealing runs once per group, when both sides are complete.- Integrity check. The hash of each original PDF must match the one recorded when the group opened; any difference aborts the seal.
- Representatives’ signatures. Each completed company seat signs the PDF with its own certificate.
- Evidence sheet. A page is appended to each PDF with the document name, the contract, the group, the original hash and the sealing time; for each customer, the signing and code-validation times, the document number hash, the identity record, the IP and the user agent; and the company representatives, listed apart from the platform seal.
- Platform seal. The platform’s certificate applies a final PAdES seal that covers everything above. Its signing time is the server time.
- Store. The sealed PDFs are uploaded to the private
contractsbucket anddocuments_sealedis appended to the chain. The consumer reads them withgetSignedDocument.
Verification
The available verification combines two checks into one verdict. Today the contract evidence export verifies the audit chain only:
Digital contracting exposes the evidence package of a contract through
GET /api/v3/contract/{id}/evidence; see
Digital contracting — Signing.
Code
Paths are relative to
backend/horizon-api/.