Skip to main content
A signature is only as strong as what proves it. MaihueSigner keeps three independent proofs: the evidence of each gesture, an audit chain that links every event by hash, and PAdES seals on the PDFs.

Evidence of each gesture

Each seat gets one row in signature_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 to signature_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.
  1. Integrity check. The hash of each original PDF must match the one recorded when the group opened; any difference aborts the seal.
  2. Representatives’ signatures. Each completed company seat signs the PDF with its own certificate.
  3. 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.
  4. Platform seal. The platform’s certificate applies a final PAdES seal that covers everything above. Its signing time is the server time.
  5. Store. The sealed PDFs are uploaded to the private contracts bucket and documents_sealed is appended to the chain. The consumer reads them with getSignedDocument.

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/.