Inkless: a signing service whose proof outlives it
Inkless is an open-source, self-hosted service for signing documents, written in Go. An application uploads a PDF and names the signers. Inkless runs the ceremony: review, consent, an emailed code, then sign or decline. It then seals the final PDF and builds an evidence package that anyone can check years later, without contacting Inkless or whoever ran it. Habivelle, a property CRM, is its first integration.
At a glance
- What it is: a signing service and an offline verification library in Go, released under the Apache 2.0 license
- Seal: PAdES baseline B-T with an RFC 3161 timestamp, signed by a key in AWS KMS
- Storage: SQLite by default, or PostgreSQL or MySQL; documents on local disk or S3
- Verification: an
inkless verifycommand and a Go package, both fully offline - Integration: a versioned HTTP API, a Go client and Standard Webhooks events
- Distribution:
go install, a signed multi-arch Docker image, and release binaries with checksums - First integration: Habivelle offers and contracts
Why Inkless exists
Habivelle needed agents and property developers to send offers and contracts for clients to sign online. The easy route was to build signing into the CRM. I didn't take it.
A signature has to be trustworthy long after the deal closes, and possibly after the software that made it is gone. That is a different problem from managing contacts and properties, and the code that solves it deserves its own boundaries. So I built Inkless as a standalone project with no knowledge of Habivelle. Habivelle owns organisations, clients, templates and who can see which file. Inkless owns signing requests, consent, signing state and evidence. Any other application can use it the same way.
Why a signing service needs its own inbox
An early question was a fair one: why does a signing component need a database and an email sender? Couldn't the application just tell it who is signing?
If it could, anyone who compromised the application could sign as any of its users. So the application's word only opens a session. The signer must then enter a code sent to their own address. That proves control of the inbox, and the integrator can't fake it. Inkless keeps its own record of every step, so the application can't rewrite it afterwards.
That also sets the limit of the claim. Inkless proves that someone with the application's session and access to the signer's inbox acted. It does not prove who was at the keyboard. The project calls this an email-verified simple electronic signature, and it makes no claim about legal effect in any jurisdiction.
Freezing what the signer saw
A signature only means something if it is bound to the exact document the signer read.
The upload must state the file's SHA-256, and stored documents never change. Inkless records server-side that those exact bytes were served to the signer's session, and checks the digest again at the moment of signing. The sealed PDF is an incremental update, so it starts with exactly the bytes the signers were shown. Every state change is added to a hash-chained event log, and the evidence binds the digests of both the original and the final file.
A seal built to the standard
The library I used to build the PDF signature hard-coded details that prevented a strict PAdES baseline. Forking about 1,500 lines of it would have meant carrying that code forever. Instead, Inkless lets the library lay out the PDF, then replaces the signature in place with one it builds itself, at the same length, so no offsets move.
I wanted outside confirmation rather than my own tests alone. The European Commission's DSS validator, built from its tagged source and run in CI, reports the seal as PAdES-BASELINE-T and TOTAL_PASSED. Change one byte in the signed range and it reports a hash failure.
Verification that doesn't need us
Anyone holding the operator's published trust data can verify a package offline. The verifier makes no network calls and reports six checks separately: package, evidence, document, seal, attribution and timestamp.
Each check returns passed, failed or indeterminate. That third result matters. A missing trust anchor doesn't mean a forgery, and a verifier that says "passed" when it means "couldn't tell" isn't worth running. Signing keys are listed in a key list signed by an offline root key. A rotated key keeps old documents verifiable, and a compromised key fails both the evidence and the seal. The verifier finds the signature in a hostile PDF without fully parsing the file, so a crafted document can't exhaust it.
Races, retries and lost webhooks
Signing has awkward timing: a revocation arriving mid-signature, two tabs open, a request expiring during the ceremony. Every step rechecks state, expiry, signing order, session, code and document digest in one transaction. It writes only if nothing changed underneath it. A losing request retries or gets a clean conflict, and it changes nothing. These races are tested on SQLite, PostgreSQL and MySQL.
Every write accepts an idempotency key. Webhooks are signed to the Standard Webhooks spec and delivered at least once, in order. The completion event is sent only after the sealed PDF and evidence exist. Webhooks can still get lost, so the integration guide pairs them with a polling reconciliation. Delayed, duplicate or missed events can't leave the application out of sync for good.
Almost no configuration
I wanted it to be trivial to try. inkless serve starts with no configuration at all: SQLite, synthetic keys, and codes printed to the log. Production needs four settings: a public URL, a KMS key, a mail server and a timestamp authority. There is no config file.
Storage sits behind interfaces, so the service never sees SQL or driver types. Every database and blob driver must pass the same conformance suite. An architecture test holds an explicit list of allowed imports for each package. Any new dependency between packages fails the build until someone approves it.
What review caught
I asked for independent security and architecture reviews before release. They found real problems:
- Guessing codes across sessions. Each session allowed 15 guesses, but nothing capped the number of sessions. Inkless now caps sessions, sends and failed codes for each signer on each request, then locks the signer.
- A spoofable signer IP. Behind a proxy, the recorded address came from the client-controlled end of
X-Forwarded-For. It now takes the entry the proxy itself added. - Silent MySQL foreign keys. MySQL had ignored all 13 foreign key constraints. A new migration adds them.
- A flaky seal test. Running the seal tests 50 times in a row exposed port exhaustion when talking to the timestamp authority. One release candidate had already shipped with it. Published versions can't change, so the fix went into the next one.
Where Inkless stands
Inkless v0.1.0 was released in November 2026 and is listed on pkg.go.dev. Habivelle's online signing for offers and contracts runs on it.
The API and evidence format may still change before v1, and the integration guide records every change. Production deployments must choose their own seal certificate and timestamp authority. The development certificates are, correctly, not on any EU trusted list. Each market and document type still needs legal review before it is switched on.
What building Inkless taught me
Producing a signature is the easy part. The real work is being exact about what you can prove, building it so a stranger can check it without you, and being willing to answer "indeterminate" instead of "passed".
Read the Inkless tutorial to sign a sample document and verify it offline.
View the source · Read the package docs · Read the threat model