Loading...
Loading...
Prove you wrote it. Every commit, every release, every line of code — cryptographically timestamped and independently verifiable.
# Protect your code with Truthlocks API
# 1. Compute SHA-256 hash
HASH=$(sha256sum main.go | cut -d' ' -f1)
# 2. Create cryptographic proof
curl -X POST https://api.truthlocks.com/v1/consumer/mint \
-H "Authorization: Bearer $TOKEN" \
-d '{
"content_hash": "'"$HASH"'",
"title": "main.go v2.1.0",
"category": "source_code",
"visibility": "public"
}'
# Response:
# {
# "attestation_id": "b2c3d4e5-...",
# "verify_url": "verify.truthlocks.com/proof/..."
# }Everything you need to protect your code and prove authorship.
AI automatically identifies the programming language, framework, and purpose of your code. Metadata is included in the attestation.
If your code contains license headers, they are detected and recorded as part of the cryptographic proof.
Protect code programmatically with a single API call. Compute the SHA-256 hash and POST to /v1/consumer/mint.
Add content protection to your build pipeline. Hash your artifacts at build time and register them automatically.
Add a 'Protected by Truthlocks' badge to your README. Shows verified status and links to the cryptographic proof.
Every protection is anchored to an append-only transparency log. The record is independently verifiable and tamper-evident.
Show the world your code is protected. The badge dynamically reflects verification status.
Markdown
[](https://verify.truthlocks.com/proof/ATTESTATION_ID)HTML
<a href="https://verify.truthlocks.com/proof/ATTESTATION_ID"><img src="https://verify.truthlocks.com/badge/ATTESTATION_ID" alt="Protected by Truthlocks" /></a>50 protections per month, free forever. Full API access included.