How It Works
We integrated the Ethereum Attestation Service (EAS) contracts to enable the community to attest to interaction specifications created on the OKcontract Interactions Hub.
We’ve created an EAS attestation schema that matches the interaction specification properties and implemented a simplified version of our scoring system. We integrated the attestation feature into the interaction specification page on the OKcontract Interactions Hub. On the user side, we added the capability to access these attestations directly through the embedded contract user interface.
Specification and Attestation: A developer creates a contract interaction specification on the OKcontract Hub. They confirm the specification’s authenticity via a signed EAS attestation, which is securely stored onchain. The developer can then invite team or community members to assess the quality of the interaction specification and contribute to the score by attesting to it. Each attestation contributes to the trust score.
Displaying and Verifying Attestations: Once a contract interaction specification is attested, it is displayed on the interaction specification page on the OKcontract Hub. A link to this page is accessible to end-users from the user interface, which can be embedded across various applications. By clicking on the link, users can view the EAS attestations for this interaction and decide if they trust the contract interaction based on its score.
In the future, we plan to extend these attestations to the user side, gathering feedback after they have interacted with contracts.