Timestamping and signing documents (SurSign)

A service the SUR Foundation builds: it records a document hash with a provable time and records and verifies the signatures of one or several people, made with their own wallets. Described for developers and for users.

The SUR Foundation's technical committee builds SurSign; who will run it is not decided yet. The design and code are written and tested, but the main network has not launched and the service is not available yet. Its planned address is sign.surnet.org. Under the design, using the service is not mandatory and the contract can be used directly.

What is it?

SurSign proves three things about a document without the document going on-chain. Only the document's hash (its fingerprint) is recorded. In this service a document is a text that you type or paste into the page, not a file. If the text is short or guessable, anyone can confirm the hash by guessing the text; for such documents add a random phrase to the text yourself.

  • Timestamp: this hash existed at this time (the block time). It does not prove the author or the owner.
  • Independent signature: this address signed this hash. Any number of people can sign the same document separately.
  • Multi-party flow: a fixed list of addresses all sign the same document, and when the last slot is filled the flow is complete.

For developers

The SurDocSign contract has no owner, cannot be upgraded, has no changeable parameter and holds no funds. A bug is fixed with a new version at a new address, and the old one stays readable for verification. The API service sits on top of this contract. The contract is not one of the structural genesis contracts; its address and ABI will be published on the contracts and explorer page once it is deployed on the main network.

Timestamping a hash

The register function records the time of the first registration and claims no identity. It can be used through the API with a key or directly from a wallet.

Independent signatures

Any ordinary address (not a smart-contract wallet) can sign a document once per context: once outside any flow and once in each flow. The identity level at that moment is stored with the signature: 0 any address, 1 registered identity, 2 fully verified.

Multi-party flows

The creator sets the list of signers, a minimum identity level and a deadline. There is no required signing order. The creator can cancel an incomplete flow until its deadline; signatures already recorded stay. Optionally the flow can also require the Foundation's CEO, chair and treasurer; the Foundation is the only legal entity supported.

EIP-712 signing and submission

The signer signs EIP-712 data with their own wallet and anyone (the service included) can submit the transaction. The service cannot forge anything; the worst it can do is not send, and under the design the direct path with a wallet is always there (though it needs the published contract address, and the gas is yours).

Verification and proof package

The verification API is public and needs no key: first-seen time, signatures with their identity level, and flows. The proof package is a self-contained JSON (contract, block, transaction, data and signature) that can be checked against a public RPC.

Webhooks and quotas

An API client works with a key and HMAC and receives signed webhooks, with retries: signature.recorded, envelope.completed, envelope.cancelled, envelope.expired and blob.expiring. Each key and each wallet has a daily quota that rises with staking for this service; the numbers are not final.

For writing, the API takes either the text itself (it hashes it and does not store it) or the hash the client made from a canonical text. An API client that wants to sign automatically keeps its own key.

For users

All you need is a wallet. Signing in the web pages goes like this:

Type or paste the text

The page takes no file. Your browser makes the text canonical and computes its hash there. So the same words always give the same hash.

Log in with your wallet

Login is by signing a one-time message.

Read and check

The page shows the text itself, the hash, the signers and the deadline. Before the wallet opens, it checks what is about to be signed against your choices.

Sign

The wallet shows the EIP-712 data and you sign. The service sends the transaction and pays the gas fee, within its daily quota, or you send it yourself and pay the gas.

Keep a copy

You can download a zip with the text and the proof that can be checked without the service itself, and send it to anyone.

Verifying

Anyone, with no wallet, pastes the text into the verification page and sees when it was first recorded and who signed it, and at what identity level.

Multi-party flows and the encrypted copy

The creator can encrypt the text in their own browser and upload only the encrypted copy. The key stays in the signing link after the # and is not sent to the server; the creator passes the link to the signers. Only the creator and the people on the list can download the encrypted copy. A lost link is a lost key, with no recovery. The encrypted copy is deleted after a while and the page shows the days left; the hash and signatures stay on-chain, so keep the zip.

What it does not do

  • It holds no key and signs for nobody. Every signature is an EIP-712 signature made with the signer's own wallet.
  • It does not keep the readable text of the document and does not have its encryption key. The text does not go on-chain. The encrypted copy is unreadable to the service; if you send the text through the API, the service only hashes it and does not store it. The only exception is a public copy that one of the parties chooses to publish (by default only the creator, and others only if the creator allowed it); only a text whose hash matches the on-chain hash is accepted. It cannot be taken back from people who already downloaded it, and publishing it without the other parties' consent is a legal question.
  • It does not show names or national IDs. On-chain and on the verification page there is only the address and the identity level.
  • It does not prove authorship.

Public: the hash, the first-seen time, the list of signers (address, role, identity level, time) and the state of the flow. The title of a document (if the creator gives one) stays with the service for a limited time and anyone who knows the ID can see it; do not put anything sensitive in a title.

Legal standing. This page does not claim that a SurSign signature is legally valid or equivalent to a handwritten one. Only a "simple electronic signature" is claimed, and no claim to a "secure signature" (with a certificate from an authorised certification body) is made; even the first claim has not yet been reviewed by a lawyer. If a court orders it, the operator of the service may be compelled to hand over encrypted copies, metadata and records.

Status and what is not built yet

  • The SurDocSign contract Ready in the design is tested and has had an internal review with an automated reviewer; no external independent audit has been done, and the changes after that review have not been seen again by anyone.
  • The API service and the signing and verification web pages Ready in the design are written and tested.

Not done yet: a run on a Besu network, a test with a real wallet in a real browser, an SDK, e-mail and SMS notifications, a commercial plan, an independent review of the service and the web pages, building the web app, a decision on who runs the service, and a lawyer's opinion. The official public RPC address is not set either, and the long-term validity of a proof depends on the network surviving.

Frequently asked questions

What happens if the service goes down?

The hashes and signatures are on-chain. Once the contract address is published you can work with the contract directly from your wallet, and you can check a proof package without the service. But the encrypted copy and the document title live only on the service and are lost if it goes down.

Can I withdraw my signature?

A signature recorded on-chain cannot be withdrawn. You can only withdraw, with a transaction from your own wallet (the gas is yours), a signed message that has not been submitted yet. The creator of a flow can also cancel an incomplete flow.

Can I sign a file (a PDF, say)?

The pages and the API accept only text. The contract itself also knows SHA-256 hashes, so someone working with it directly can record a file's hash.

Updated: 2026/11/30