Skip to content

nijoe1/TAS

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

83 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Tableland Attestation Service (TAS)


Encode Open Data Hack Project 🚀

TAS Logo


📖 Introduction

  • Tableland Attestation Service (TAS) brings attestation services to the Filecoin network. TAS migrated the EAS protocol together with Tableland to create the Tableland Attestation Service. TAS can seamlessly work with all networks supported by Tableland and is currently deployed on Filecoin Calibration and Polygon Mumbai networks.

♯ Description

  • TAS is a robust and extensible protocol designed to bring the power of attestations to the Filecoin ecosystem. It leverages Tableland, a decentralized SQLite indexing protocol, at its core, to seamlessly integrate with Filecoin and EVM-compatible blockchains. TAS empowers users to generate and verify attestations, providing cryptographically signed confirmation of the authenticity and accuracy of information.

  • TAS goes beyond traditional attestation services by offering file attestations for various file types using Lighthouse storage. This means every kind of file can be securely stored on IPFS and replicated on Filecoin, ensuring persistent data storage in the decentralized web. Additionally, TAS provides subscription-based and access control schemas, allowing for tailored access to attestations and versatile data management, including support for private or open AC schemas.


☝ Advantages compared to EAS

  • Tableland Integration:

    • TAS leverages Tableland for indexing attestations and schemas, resulting in significantly faster performance compared to GraphQL.
    • Developers can create SQLite queries directly to the Tableland gateway, eliminating the need for a GraphQL client.
  • Ceramic Network Integration:

    • TAS is integrated with the Ceramic network to provide OffChain attestations, enhancing decentralization.
  • Out-of-the-Box Features:

    • TAS offers Schema Name-Description-Categories out-of-the-box while EAS requires an additional attestation to achieve that. Which requires more fees and one more query to index those info.
    • TAS offers out-of-the-box file attestations stored on IPFS and Filecoin using Lighthouse.
    • It also provides encrypted schemas with encrypted attestations using the Lighthouse Kavach network, providing a more efficient solution compared to costly merkle trees used in EAS.

👇 Disadvantages compared to EAS

  • Tableland has a limitation of supporting a maximum of 1024 string length per column insertion. The attested data are encoded to bytes, resulting in larger string lengths stored in the table, limiting the amount of data that can be attested.
    • To address this limitation, before making the attestation, we encode the data to base64, providing a 33% more space for attestation data.

👨‍💻Technologies Used 🤖

TAS leverages several cutting-edge technologies to offer a comprehensive and secure attestation service:

Tableland:

  • Replacing the centralized GraphQL infrastructure of EAS with a decentralized network for faster and complex queries. Tableland Queries
  • Implemented a mechanism to create new tables within the contract whenever the number of entries exceeds 100,000, surpassing Tableland's table limitation. This ensures the protocol can handle an unlimited number of schemas and attestations, with only SQL queries needing modification. Through the unionAll function applied to similarly created tables, the protocol's data remains accessible and structured.
  • Here are all the tableland Indexer Contracts. Tableland Contracts

IPFS and Filecoin:

  • Utilized for storing attested files securely, ensuring persistent data storage and accessibility using Lighthouse RAAS service.

Lighthouse Storage:

  • Lighthouse Storage powers file attestations by securely storing files on IPFS and replicating them on Filecoin for longevity and accessibility through the RAAS service. Users can transparently check the established deals made by the Lighthouse nodes infrastructure for all files uploaded to the platform. Check an example in this [GIF]
  • Lighthouse Usage Code Link

Lighthouse Kavach Network:

  • Providing encryption capabilities for subscription-based schemas and encrypted access control based schemas, safeguarding sensitive data in attestations. Kavach Usage Code Link

Ceramic Network:


🧾 Contracts


☯ Unlocked Use Cases for the Filecoin Ecosystem

  • EAS Use Cases:

  • File Attestations:

    • Securely store and attest various file types on IPFS and Filecoin, ensuring the authenticity and integrity of the stored files.
  • Filecoin Actors Reputation:

    • Monitoring and establishing reputations for Filecoin actors (like storage providers, clients, etc.) based on their behavior, reliability, and performance within the network.
  • Retrieval Oracle Attestations:

    • Utilizing attestations to verify and validate the reliability and efficiency of retrieval oracles within the Filecoin ecosystem, ensuring accurate and timely data retrieval.
  • Verifiable Credentials:

    • Generating and verifying verifiable credentials, providing a secure and tamper-proof way to manage and share important credentials and certifications within the Filecoin network.
  • Users Reputation Scoring through Attestations:

    • Creating a reputation scoring system for users based on their interactions, contributions, and attestations within the Filecoin ecosystem, promoting trust and collaboration.
  • Additional Use Cases:

    • Access Control Schemas (AC Schemas):

      • Implementing access control schemas for verifiable credentials and tickets, enabling fine-grained control over who can attest and access certain data on the Filecoin network.
    • Subscription-Based Schemas:

      -Developing schemas where access to attestations and encrypted content is subscription-based, allowing for controlled access and monetization of premium content and services within the Filecoin ecosystem.


TAS unlocks a multitude of possibilities within the Filecoin ecosystem, promoting trust, security, and transparency across diverse applications and industries.

📄 License

This project is licensed under the MIT License - See the LICENSE file for details.

🛠️ Built With

🤝 Acknowledgements