Verifile
v1.6.0Proof of existence for files and texts: anchor a SHA-256 on the Doichain and verify it later
These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.
hash_text SHA-256 of a text
Compute the SHA-256 digest of a short text (UTF-8) on the server, for example to anchor a statement or a message with anchor_proof. The text is sent to the server but not stored or logged. For files and for confidential texts compute the hash locally instead (sha256sum file, or Get-FileHash -Algorithm SHA256).
| Parameter | Type | Description |
|---|---|---|
text * | string | Text to hash, encoded as UTF-8 exactly as given (whitespace and line breaks count), at most 40,000 characters |
check_proof Check a proof of existence
Check whether a SHA-256 hash is anchored on the Doichain (name poe/<sha256>) and since when. Returns status (confirmed, pending, expired, unknown) and at the top level block height, block time, transaction and links of the first anchoring, which is the proof time. If the name was updated later or registered again after it expired (possibly by someone else), that registration is reported separately in latest_registration with its own holder and record, which are not part of the original proof. A confirmed or expired proof shows that a document with exactly this hash existed…
| Parameter | Type | Description |
|---|---|---|
sha256 * | string | SHA-256 digest of the document, 64 hexadecimal characters (a sha256: or 0x prefix is accepted) |
anchor_proof Anchor a proof of existence
Anchor a SHA-256 hash on the Doichain as a tamper-evident timestamp (proof of existence, name poe/<sha256>). Free for users, limited per IP address and day (see get_anchoring_quota). Confirms with the next block, usually within 10 minutes, then check_proof returns block height and time. If the hash is already anchored or pending, the existing proof is returned instead of creating a second one. If an earlier proof of the hash has expired, it stays valid and is returned with expired true. Nothing is registered unless reanchor_expired is true. Only the hash and the optional no…
| Parameter | Type | Description |
|---|---|---|
sha256 * | string | SHA-256 digest of the document, 64 hexadecimal characters, computed from the actual file. Never guess it and never send the document |
filename | Optional public file name (max 80 characters), stored forever. Only set it when the user explicitly wants the name public | |
note | Optional public note (max 160 characters), stored on the blockchain forever. No personal data, no secrets | |
reanchor_expired | boolean | Only set to true when an earlier proof of this hash has expired and the user explicitly wants an additional, later registration. The original anchoring stays the proof time. The new registration adds… |
get_anchoring_quota Remaining anchoring quota
How many proofs can still be anchored today (UTC day) within the free public quota for the caller's IP address. Hosted chat apps connect from their own servers, so their users share one quota. Callers that send their own API key in the X-API-Key header have no quota.