inkless

module
v0.1.0-rc.3 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 28, 2026 License: Apache-2.0

README

Inkless

Go Reference ci

Inkless is a self-hosted document-signing service and an offline verification library, written in Go.

Your application uploads a PDF and names the signers. Inkless runs the signing ceremony: review, consent, an emailed code, then sign or decline. It then seals the final PDF (PAdES with an RFC 3161 timestamp) and produces an evidence package. Anyone holding the published trust data can verify the package without contacting Inkless. Use it when signatures must stay in your own infrastructure and be checkable for years without depending on a vendor.

flowchart LR
  App[Your application] -->|API, webhooks| Inkless
  Signer((Signer)) -->|link, email code, consent| Inkless
  Inkless --> DB[(SQLite, PostgreSQL or MySQL)]
  Inkless -->|sign| KMS[AWS KMS]
  Inkless -->|timestamp| TSA[TSA]
  Inkless --> Out[final.pdf + evidence.zip]
  Out -.->|offline| Verify[inkless verify]

What it guarantees

When verification passes with correctly configured trust anchors:

  • final.pdf and the evidence are byte-for-byte what Inkless sealed and signed, and final.pdf begins with exactly the bytes the signers were shown.
  • The evidence existed no later than the timestamp, signed by a key that was valid and not compromised at that time.
  • For each signer, the evidence records consent, a passed email-code challenge and a sign event bound to the document.

It does not prove who was at the keyboard, only that someone with your application's session and access to the signer's inbox acted. The assurance level is an email-verified simple electronic signature. Inkless makes no claim about legal effect. See the threat model.

Install

go install github.com/edgar4/inkless/cmd/inkless@latest   # Go 1.26+
docker pull ghcr.io/edgar4/inkless:<version>              # signed multi-arch image
docker compose up                                         # from a clone: zero-config dev stack

Release binaries with checksums are attached to each GitHub release.

Set up

inkless serve                                    # dev mode: http://127.0.0.1:8080, SQLite, synthetic keys, codes in the log
inkless apps create -name "My App" -origin http://localhost:3000 -webhook-url http://localhost:3000/hooks

Production needs INKLESS_PUBLIC_URL (https), INKLESS_KMS_KEY, INKLESS_SMTP_URL and INKLESS_TSA_URL. Set INKLESS_DATABASE_URL for PostgreSQL or MySQL. There is no config file. The full table and the key setup are in operations and key management.

Verify a package offline, here the committed synthetic fixture:

inkless verify -root "$(cat testdata/fixture/root.txt)" -seal-ca testdata/fixture/seal-ca.pem \
  -tsa-ca testdata/fixture/tsa-ca.pem testdata/fixture/evidence.zip

Integrate

c := client.New("https://sign.example.test", apiKey)
doc, _ := c.UploadDocument(ctx, pdf, client.IdempotencyKey())
req, _ := c.CreateSigningRequest(ctx, client.CreateSigningRequest{
	DocumentID: doc.ID, Routing: client.RoutingParallel, ExpiresAt: time.Now().Add(7 * 24 * time.Hour),
	Signers: []client.SignerInput{{Ref: "buyer", Name: "Synthetic Buyer", Email: "buyer@example.test", Order: 1}},
}, client.IdempotencyKey())
req, _ = c.Issue(ctx, req.ID, client.IdempotencyKey())

Error handling is omitted for brevity. Sessions, webhooks and reconciliation are in the integration guide; a complete program is in examples/client.

Documentation

Page Contents
integration.md API flow, idempotency, webhooks, reconciliation, Go client, contract changes
operations.md Configuration, Docker, deployment, storage drivers, limits, retention
key-management.md Root key, KMS key, seal certificate, rotation, compromise
verification.md inkless verify, trust inputs, each check
evidence-format.md evidence.zip layout, canonical JSON, JWS, key list
threat-model.md Guarantees, threats, mitigations, residual risks
architecture.md Packages, dependency rules, request lifecycle, concurrency
adr/ Architecture decisions
api/openapi.yaml API v1 contract
CONTRIBUTING.md Development, make targets, tests

Status

Release candidate (v0.1.0-rc). Not yet run in production. The PAdES seal has been checked with qpdf and pdfsig but not yet with the EU DSS validator. Breaking changes before v1 are recorded in integration.md.

Report vulnerabilities privately as described in SECURITY.md. Licensed under the Apache License 2.0.

Directories

Path Synopsis
Package client is the Go client for the Inkless API v1 and a helper for receiving its Standard Webhooks events.
Package client is the Go client for the Inkless API v1 and a helper for receiving its Standard Webhooks events.
cmd
inkless command
Command inkless runs the Inkless service and verifies its evidence packages and sealed PDFs.
Command inkless runs the Inkless service and verifies its evidence packages and sealed PDFs.
inkless-fixture command
Command inkless-fixture writes a synthetic evidence package and the public trust data needed to verify it.
Command inkless-fixture writes a synthetic evidence package and the public trust data needed to verify it.
Package evidence defines the Inkless evidence package v1 (evidence.zip): its types, canonicalisation, event hash chain, key list and builder.
Package evidence defines the Inkless evidence package v1 (evidence.zip): its types, canonicalisation, event hash chain, key list and builder.
examples
client command
Command client shows an integration with a running Inkless using only the public client package: upload a PDF, create and issue a signing request, open a signer session and receive webhooks.
Command client shows an integration with a running Inkless using only the public client package: upload a PDF, create and issue a signing request, open a signer session and receive webhooks.
e2e command
Command e2e runs a complete signing flow against an in-process Inkless: two synthetic signers sign in sequence through the hosted pages, webhooks are received and verified, and the artifacts pass verification.
Command e2e runs a complete signing flow against an in-process Inkless: two synthetic signers sign in sequence through the hosted pages, webhooks are received and verified, and the artifacts pass verification.
internal
ceremony
Package ceremony serves the hosted signing pages: open link, email code, review of the stored PDF, consent, sign or decline, return.
Package ceremony serves the hosted signing pages: open link, email code, review of the stored PDF, consent, sign or decline, return.
devpki
Package devpki generates ephemeral keys, certificates and a local RFC 3161 timestamp authority for tests and synthetic fixtures.
Package devpki generates ephemeral keys, certificates and a local RFC 3161 timestamp authority for tests and synthetic fixtures.
fixture
Package fixture builds synthetic, fully valid evidence packages for tests and demos, optionally with a single injected fault.
Package fixture builds synthetic, fully valid evidence packages for tests and demos, optionally with a single injected fault.
httpapi
Package httpapi serves the Inkless API v1 (api/openapi.yaml).
Package httpapi serves the Inkless API v1 (api/openapi.yaml).
mail
Package mail sends Inkless's own emails (signing codes only).
Package mail sends Inkless's own emails (signing codes only).
pack
Package pack produces evidence packages and signed key lists in the format defined by package evidence.
Package pack produces evidence packages and signed key lists in the format defined by package evidence.
pdf
Package pdf inspects uploaded PDFs: limits, encryption, existing signatures, and whether Inkless can seal them.
Package pdf inspects uploaded PDFs: limits, encryption, existing signatures, and whether Inkless can seal them.
seal
Package seal applies the Inkless platform seal to a PDF as one incremental update: an optional signing summary page and a certification signature with an RFC 3161 signature timestamp (PAdES baseline B-T).
Package seal applies the Inkless platform seal to a PDF as one incremental update: an optional signing summary page and a certification signature with an RFC 3161 signature timestamp (PAdES baseline B-T).
server
Package server assembles the HTTP handler: API, ceremony pages, health check and, in development, a local timestamp authority.
Package server assembles the HTTP handler: API, ceremony pages, health check and, in development, a local timestamp authority.
service
Package service implements signing requests, the ceremony state machine, events, webhooks and artifacts on any storage.Store.
Package service implements signing requests, the ceremony state machine, events, webhooks and artifacts on any storage.Store.
signer
Package signer holds the service's signing keys behind crypto.Signer and the public key material it publishes.
Package signer holds the service's signing keys behind crypto.Signer and the public key material it publishes.
signer/awskms
Package awskms provides a crypto.Signer backed by AWS KMS.
Package awskms provides a crypto.Signer backed by AWS KMS.
testenv
Package testenv runs an in-process Inkless with a throwaway database, dev keys, a local TSA and a capturing mailer, plus a scripted browser for the ceremony.
Package testenv runs an in-process Inkless with a throwaway database, dev keys, a local TSA and a capturing mailer, plus a scripted browser for the ceremony.
tsa
Package tsa is an RFC 3161 timestamp client.
Package tsa is an RFC 3161 timestamp client.
Package storage defines the persistence interface the Inkless service uses and a registry of drivers selected by URL scheme.
Package storage defines the persistence interface the Inkless service uses and a registry of drivers selected by URL scheme.
mysql
Package mysql registers the storage driver for mysql://user:password@host:port/database URLs, using go-sql-driver/mysql.
Package mysql registers the storage driver for mysql://user:password@host:port/database URLs, using go-sql-driver/mysql.
postgres
Package postgres registers the storage driver for postgres:// and postgresql:// URLs, using pgx.
Package postgres registers the storage driver for postgres:// and postgresql:// URLs, using pgx.
sqlite
Package sqlite registers the default storage driver for URLs of the form sqlite:PATH (sqlite:inkless.db, sqlite:///var/lib/inkless.db).
Package sqlite registers the default storage driver for URLs of the form sqlite:PATH (sqlite:inkless.db, sqlite:///var/lib/inkless.db).
sqlstore
Package sqlstore implements storage.Store on database/sql.
Package sqlstore implements storage.Store on database/sql.
storagetest
Package storagetest is the conformance suite for storage drivers.
Package storagetest is the conformance suite for storage drivers.
Package verify checks an Inkless evidence package or sealed PDF offline.
Package verify checks an Inkless evidence package or sealed PDF offline.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL