1. Blog
  2. Research and Engineering
  3. Worldcoin, Reilabs mark blockchain security milestone with SMTB formal verification

Worldcoin, Reilabs mark blockchain security milestone with SMTB formal verification

In the rapidly evolving digital landscape, the necessity for secure and reliable blockchain protocols has never been more important. 

The recent collaboration between Tools for Humanity (TFH), a contributor to the Worldcoin project, and Reilabs, an independent team comprised of experts in blockchain and cryptography, to undertake the formal verification of the Semaphore Merkle Tree Batcher (SMTB) marks a pivotal advancement in ensuring the robustness of the Worldcoin protocol. 

This combined initiative not only showcases a commitment to leading-edge security practices but also underscores the importance of formal verification in the realm of zero-knowledge systems. 

The essence of formal verification

Formal verification stands at the intersection of mathematics and computer science, offering a method to rigorously prove the correctness of algorithms and systems. 

Unlike conventional testing, which can only check for the presence of bugs in specific scenarios, formal verification uses mathematical proofs to ensure a system's behavior across all possible states and inputs. This method provides a higher level of assurance that the system will behave as intended, making it indispensable for the security of blockchain protocols.

Collaboration between Reilabs and Worldcoin contributor TFH

The focus of the collaboration between TFH and Reilabs was the SMTB, a vital component within Worldcoin’s World ID protocol that’s responsible for efficient, on-chain operations of zero-knowledge proof circuits. 

SMTB is a service for batch processing of Merkle tree updates and is designed to be used in conjunction with the Semaphore protocol. It accepts Merkle tree updates and batches them together into a single update which is useful for reducing the number of transactions that need to be submitted to the blockchain. The correctness of the batched Merkle tree update is assured through the use of Zero-Knowledge Proofs (ZKPs). The complete description of the Worldcoin protocol and its use of Semaphore can be found in the protocol whitepaper

By employing Reilabs' expertise in cryptography and formal verification, TFH sought to mathematically prove the correctness of the SMTB's implementation. In the context of the Worldcoin protocol, Reilabs successfully demonstrated the proper functionality of both the insertion and deletion circuits, ensuring that the system accurately inserts and removes identities without any falsification or pseudo-deletions. 

More significantly, Reilabs verified that the entire system is guaranteed to maintain progress under all conditions. This means it is impossible for the system to enter a state where identities cannot be inserted or removed, effectively preventing any form of censorship. Further, the verification process is integrated into the SMTB’s CI system, ensuring that any change violating the protocol’s invariants cannot be merged without detection.

This verification represents a critical milestone for a protocol of Worldcoin's scale, serving as a substantial endorsement of its robustness and reliability. For more details, please see the full Formal Verification Report from Reilabs which can be found in its entirety here

Benefits for the Worldcoin community

The successful formal verification of the SMTB carries significant benefits for the Worldcoin community:

  • Enhanced Security. Formal verification eliminates the uncertainties surrounding the SMTB's behavior, providing a solid foundation of trust and security for the World ID protocol.
  • Operational Reliability. By proving the SMTB's correctness, Worldcoin project contributors ensure the reliability of their operations, crucial for the protocol's goal of providing a universal digital identity.
  • Improved Trust. This initiative demonstrates a dedication to transparency and security related to the Worldcoin project, reinforcing the community's trust in the platform's capabilities and its commitment to privacy-preserving technologies.

Championing secure, transparent, inclusive digital communities

The collaboration between the TFH and Reilabs, culminating in the formal verification of the Semaphore Merkle Tree Batcher, represents a significant leap forward in blockchain security. 

This embrace of formal verification not only sets a new standard in the assurance of cryptographic protocols but also paves the way for a future where digital identities are both universally accessible and securely protected. 

Worldcoin and its growing contributor community will continue working to champion innovation that promotes security, transparency and inclusivity. 

Learn more

To learn more about the Worldcoin protocol, visit the Worldcoin website or join the daily conversations on Twitter/X, Telegram, Discord, YouTube and LinkedIn. You can also sign up for the blog newsletter at the bottom of this page.

Additional important information concerning the project is available in the Worldcoin protocol whitepaper.

Disclaimer

The above content speaks only as of the date indicated. Further, it is subject to risks, uncertainties and assumptions, and so may be incorrect and may change without notice. A full disclaimer can be found in our Terms of Use and Important User Information can be found on our Risks page.