Technical overviewA technology by

Cryptographic assurance, engineered for enterprise trust.

HashOrigin™ is the cryptographic foundation underpinning document integrity across the Twala platform. It combines advanced cryptography, blockchain anchoring, and established digital signature standards to deliver a tamper-evident, independently verifiable chain of trust for every document processed through Twala.

  • SHA
  • ECC
  • Merkle tree
  • X.509
  • TLS 1.3
  • AES-256
Publisher
Twala
Scope
Every document processed through Twala
Assurance
Tamper-evident · independently verifiable

How HashOrigin works

HashOrigin turns every document into verifiable evidence. Five stages each add a layer of assurance — and together they form a tamper-evident chain of trust that anyone can verify independently.

Fig. 01The HashOrigin pipeline, from a document’s fingerprint to independent verification.

Cryptographic Fingerprinting

Every document processed by Twala is assigned a unique cryptographic hash — a fixed-length digital fingerprint generated using Secure Hash Algorithms (SHA). Even the smallest edit produces an entirely different hash, providing a reliable way to confirm that every document remains exactly as intended.

₱1,250,000.00 → ₱7,250,000.00
SHA-256 fingerprint
Original32576d0f790343493746abb37586725c6f65eb3ecfe2e87b406fa81c3d5709e2
Current32576d0f790343493746abb37586725c6f65eb3ecfe2e87b406fa81c3d5709e2
Bits changed0 / 256 (0%)

Fingerprint matches the original

Computed privately in your browser — your text stays on this page.

Fig. 02Live fingerprint. Change a single character and roughly half of the 256 output bits flip — the avalanche effect that makes every change instantly visible.

Digital Signature Integration

Prior to incorporation into the Merkle Tree, every document hash is sealed with Twala’s own digital signature. This platform seal is applied by Twala using Twala’s private key, cryptographically binding every sealed document to the Twala platform. The process is aligned with the requirements of electronic signature laws, including the Philippine Electronic Commerce Act, the Supreme Court Rules on Electronic Evidence, and comparable regulatory frameworks internationally.

The seal certifies that each document was processed through Twala and preserves its integrity, so any modification is immediately detectable.

Seal
Document fingerprintSHA · 5e014c…9e4b
Twala’s private keyECC · held by the Twala platform
Twala platform sealApplied to every document
Verify
Twala’s certificateX.509 · carries Twala’s public key
Recompute & compare5e01…e4b = 5e01…e4b
Seal verifiedSealed by Twala · content intact
Seal verified.
Fig. 03Twala’s platform seal binds each document’s fingerprint to Twala. Verification recomputes the fingerprint and confirms it against the seal using Twala’s public key, so every change is caught instantly.
Aligned with
  • Philippine Electronic Commerce Act (RA 8792)
  • Supreme Court Rules on Electronic Evidence
  • Comparable international e-signature frameworks

Merkle Tree Architecture

To secure these fingerprints at scale, HashOrigin organizes document hashes into a Merkle Tree, a cryptographic structure purpose-built for efficiently validating large volumes of data. Individual document hashes form the base of the tree; these are progressively paired and hashed together to form a single root hash representing a cryptographic summary of all documents within the structure.

This architecture enables the integrity of any single document to be independently verified by tracing it back to the root hash — any change to a document is immediately reflected in the root hash, making it instantly detectable.

Merkle rootab961bc2…bbb5ea
Hash(A+B)64d8a…d64
Hash(C+D)2f823…ff0
Doc Ae39e3d
Doc B80d6f4
Doc C90eafc
Doc D8fb7d0
Anchored rootab961bc2…bbb5ea

Recomputed root matches the anchored root.

Fig. 04Interactive Merkle tree, simplified to four documents (in HashOrigin each leaf is a sealed document hash). Switch scenarios to trace a proof path or to see how an edit is detected.

Blockchain Anchoring

The root hash of each Merkle Tree is recorded on a blockchain — a decentralized, immutable ledger. Once recorded, the root hash is permanent, establishing an enduring and independently auditable chain of trust.

Each root hash is cryptographically linked to the one preceding it, forming a continuously extending chain of custody. As this chain grows, every new root adds to the computational assurance behind the records before it, so document security grows stronger over time.

Immutable ledger Root anchored
  1. Your document’s rootroot79bd4b…6f83prevb93622…15a4
  2. +1
  3. Anchorroot9de72c…dcf3prevf97ade…db3c
  4. Anchorroot11bbb0…b233prev9de72c…dcf3
  5. Newest anchorroot82a80b…eb1cprev11bbb0…b233

4 anchors now reinforce your document’s root — and every new anchor makes it stronger.

Fig. 05Each anchored root carries a reference to the root before it — matching colours show one block’s root reappearing as the next block’s “prev”. Illustrative values.

Independent Verification

You do not need Twala to check a document. Anyone holding a sealed file and its anchor proof can confirm on the blockchain that this exact file was anchored, and when — with any tools they trust.

The anchor proof is a small JSON file that records the document’s hash, the neighbor values on its path through the Merkle tree and where it was anchored. In Twala, download it from the details of an envelope, a timestamp or a notarization, or from the results on the verification page, and keep it with the file.

Inside an anchor proof

An example from a real document on the Polygon Amoy test network. The file carries no leaf and no root: you compute both from the document you hold, and take only the neighbors and the chain from the proof. Twala saves it as {document name} — anchor proof.json, or one archive for a record of several documents.

One proof belongs to one sealed PDF. An envelope document, a timestamp and a notarized document each have their own, and a proof only matches the exact file it was made for.

{
  "format": "twala-anchor-proof",
  "version": 1,
  "document": {
    "fileName": "document.pdf",
    "hashAlgorithm": "SHA-256",
    "hash": "01f55cb269c7a78653098c741095589f7ef711a4d665a0630b4a1127fc18db0f"
  },
  "merkle": {
    "hashAlgorithm": "keccak256",
    "proof": [
      "0xe828b2c8e8c566864c01a0a972c83deb908d8ee1757fd385d5a683847008e5c1",
      "0xb6348ace83a8cc269cdb557829b1bb3f328a529f34ac2c1337f0decf856a3de8",
      "0xd5b5d0513ff6f2e226fc2424c96194d56890db878abd1863a816ff8ab3d60699"
    ]
  },
  "anchor": {
    "chainId": 80002,
    "chainName": "Polygon Amoy",
    "contractAddress": null,
    "transactionHash": "0x04128bd65905714d1630cf7237bd9094b82b319cb3f87949d7492c97aab204a4",
    "blockNumber": 49588897,
    "anchoredAt": "2026-10-07T22:15:48.646480Z"
  }
}
format, version
Identify the file. Always twala-anchor-proof and 1.
document.fileName
The PDF’s name, for the reader’s convenience only.
document.hash
SHA-256 of the sealed PDF, hex without 0x.
merkle.proof
The neighbor value at each level of the Merkle tree, from the leaf up to the root. Empty for a document anchored on its own.
anchor.chainId, anchor.chainName
The chain the root was anchored on. Production is Polygon (137); the test network is Polygon Amoy (80002).
anchor.contractAddress
May be null on proofs of older batches. Use the contracts published below either way.
anchor.transactionHash, anchor.blockNumber, anchor.anchoredAt
Where and when the anchoring transaction was confirmed.

Always derive the leaf from the document you hold. Never accept a leaf or a root from a proof file, a certificate or a third party.

The contract’s verifyProof(root, leaf, proof) and verifyAnchored(root, leaf, proof) take the leaf from the caller and cannot tell a real document’s leaf from other values in the tree. Passing the root as the leaf with an empty proof returns true for every anchored root. They are only safe when the caller computed the leaf from the file, which is why the proof file carries no leaf and no root. Call isAnchored instead, with the root you computed yourself.

  1. Step 1

    Check the signatures

    Open the PDF in a reader that validates digital signatures, such as Adobe Acrobat. This needs nothing from Twala.

  2. Step 2

    Hash the file

    Compute the SHA-256 of the PDF with any tool. The result is 64 hexadecimal characters, and it should match document.hash in the proof.

    Linux
    sha256sum document.pdf
    macOS
    shasum -a 256 document.pdf
    Windows
    certutil -hashfile document.pdf SHA256
  3. Step 3

    Derive its leaf

    Hash those 32 bytes with keccak256: the bytes the hex stands for, not the hex as text, which gives a wrong result. The result is the document’s leaf in the Merkle tree. The proof carries no leaf to compare it with, by design. Note that keccak256, the hash Ethereum uses, is not the same function as SHA3-256.

    Leaf
    keccak256(sha256(file))
    OpenSSL 3.2+
    printf "%s" "$HASH" | xxd -r -p | openssl dgst -keccak-256
  4. Step 4

    Compute the Merkle root

    Start with the leaf. For each value in merkle.proof, in order, join the two as 64 bytes, lower value first, and hash them with keccak256. The last result is the Merkle root. With an empty proof, the leaf is the root.

    Each level
    keccak256(lower + higher)
  5. Step 5

    Read the root on the blockchain

    Call isAnchored with the root you computed, on Twala’s contract for the chain in anchor.chainId. It returns whether the root was anchored and the block timestamp. It is a free read: no wallet, account or fee.

    Function
    function isAnchored(bytes32 merkleRoot) view returns (bool exists, uint256 timestamp)

true — this exact file was anchored, at the time returned.

false — the file was changed, or the proof belongs to another file.

  • What this proves. The fingerprint of this exact file was on the blockchain at that time. A changed file gives a different root, which the contract does not hold.
  • What it does not. It does not say who signed. The PDF’s own digital signatures do (step 1).
Fig. 06Five steps from a file to its blockchain record. Step 1 needs only a PDF reader; steps 2 to 5 need the file, its anchor proof and any public node.

Twala’s anchoring contracts

Twala anchors on these contracts and no others, and a proof naming a different contract is not Twala’s. A proof file has a contract field of its own, and a forged one could point it at a contract that answers yes to anything — so take the address from here, never from the proof. Both contracts share one source, verified as an exact match on Sourcify, so the code that answers can be read too.

  • PolygonMainnet · chain ID 1370xc4dC769404E919bD6F03EF2E9F5e8a7071090F58ExplorerSource
  • Polygon AmoyTest network · chain ID 800020xe9E7722585434b97975C077cB9D55fe1e2291B13ExplorerSource

Sample script

A short Node.js script that runs steps 2 to 5 for you. It is an example to read and adapt, not a product: it pins the two addresses above and asks no other contract. It answers whether the file it is given was anchored — never whether that file is the one the proof names. A changed file reads as not anchored.

It needs Node.js 18 or newer. An optional third argument is the blockchain node URL to ask. Below the commands is what it prints for a genuine file; for a file that was changed, or a proof that is not that file’s, the last line reads “Not anchored. The contract holds no such root: the file was changed, or the proof is not this file’s.”

npm install ethers
node verify-anchor-proof.mjs "Contract.pdf" "Contract — anchor proof.json"
1. Document hash (SHA-256): 01f55cb269c7a78653098c741095589f7ef711a4d665a0630b4a1127fc18db0f
2. Leaf (keccak256):        0x3d0a8d9a7b09284514b8ac5aaf2476ce392d8e5309a5bb8659127419b7c1c14a
3. Merkle root:             0x5d6dc7750bc3216405a1aa5fbd86b20991c0667e021dc14a01724c5d5054662e
4. Contract 0xe9E7722585434b97975C077cB9D55fe1e2291B13 on Polygon Amoy

Anchored. This exact file was recorded on the blockchain on 2026-10-07T22:15:44.000Z.

Underlying Cryptographic Standards

HashOrigin is built on a foundation of internationally recognized cryptographic and digital signature standards, including:

Cryptographic standards used by HashOrigin and the role each one plays
StandardRole in HashOrigin
SHASecure Hash Algorithms (SHA)Tamper-evident document fingerprinting
ECCElliptic Curve Cryptography (ECC)Efficient, secure encryption and signing
CHAINBlockchain cryptographic protocolsGuarantee the immutability of anchored root hashes
PKIDigital signatures (public/private key infrastructure)Seal every document with Twala’s digital signature and ensure legal compliance
X.509X.509 certificate standardsInteroperability with established Public Key Infrastructure (PKI) systems
Platform encryptionTLS 1.3Encryption in transitAES-256Encryption at rest
Table 01The standards HashOrigin is built on, and the role each one plays.

Interoperability with Public Key Infrastructure

While HashOrigin is built on blockchain-based innovation, it remains fully interoperable with traditional PKI systems through support for the widely adopted X.509 certificate standard. As a member of the Cloud Signature Consortium (CSC), Twala adheres to global standards for cloud-based digital signatures, ensuring compatibility with established PKI frameworks and alignment with international regulatory expectations.

Twala’s signatures are designed to be compatible with the Adobe Approved Trust List (AATL), enabling signed documents to display as trusted and verified the moment they are opened in Adobe Acrobat and Adobe Reader — with zero certificate setup for recipients.

Twala also supports Long-Term Validation (LTV), embedding the certificate, revocation status, and timestamp information required to verify a signature’s validity directly within the signed PDF. This ensures that signatures remain independently verifiable long after the signing certificate itself has expired — a critical requirement for documents that must retain legal and evidentiary value over extended periods.

Embedded in the signed PDF

  • Twala’s certificateThe X.509 certificate behind the platform seal
  • Revocation statusProof the certificate was valid when the document was sealed
  • TimestampWhen the seal was applied

Independently verifiable long after the signing certificate expires

Fig. 07What Long-Term Validation embeds in a signed PDF: everything required to verify the signature travels with the document.
  • CSCMember, Cloud Signature Consortium
  • AATLCompatible with the Adobe Approved Trust List
  • LTVLong-Term Validation support
  • X.509Standard PKI certificates

This combination of blockchain anchoring, PKI interoperability, AATL compatibility, and LTV support allows enterprise clients to adopt Twala’s document security while staying fully compatible with existing digital certificate infrastructure and long-term document validity requirements.

Infrastructure & Resilience

Twala’s platform operates on secure, enterprise-grade cloud infrastructure engineered for high availability and operational resilience. The infrastructure strategy incorporates a formal Disaster Recovery Plan and Business Continuity Plan, designed to maintain service continuity and safeguard data integrity.

Recovery capabilities span multiple geographic regions, keeping business-critical operations highly available for enterprise clients.

Region APrimary
Serving
Region BSecondary
Ready
  • Disaster Recovery PlanFormal plan that safeguards data integrity and service continuity
  • Business Continuity PlanKeeps business-critical operations running smoothly
Fig. 08Resilience spans geographically separate regions, backed by formal DR and BC plans. Schematic.

Enterprise Value

HashOrigin delivers a set of assurances designed to meet the standards expected by regulated enterprises:

  • Legal compliance

    Aligned with the Philippine Electronic Commerce Act, Supreme Court Rules on Electronic Evidence, and comparable international electronic signature frameworks.

  • Tamper-evidence

    Every change to a document is immediately detectable, so integrity is always provable.

  • Independent verifiability

    Blockchain anchoring lets any third party verify document integrity independently, directly against the anchored record.

  • Long-term security

    The chained structure of root hashes, combined with LTV support, ensures the integrity and verifiability of records grows stronger over time.

  • Standards interoperability

    Seamless compatibility with blockchain-based, traditional PKI-based, and Adobe-native signature ecosystems.

HashOrigin™ is how Twala secures every document.

Sign, notarize, and manage documents on Twala — each one carries a tamper-evident, independently verifiable HashOrigin chain of trust.

Any further questions? Feel free to reach out.

Contact us