ethereum-attestation-service / eas-sdk

Ethereum Attestation Service - TypeScript/JavaScript SDK
MIT License
83 stars 38 forks source link

Is it possible to revoke off-chain attestation but didn't through the EAS contract? #56

Closed crazyyuan closed 10 months ago

crazyyuan commented 10 months ago

I don't know, why revoking off-chain attestation needs to interact with the EAS contract. Writing to contract will cost gas. it's unfriendly to off-chain operations.

lbeder commented 10 months ago

Offchain attestations are, as their name suggests, are fully off-chain, so they aren't optimized to be used onchain. One convention to revoke offchain attestation is by calling the revokeOffchain onchain method with their UID.

I'd recommend taking these questions to our Telegram or Discord dev groups, which you can find here: https://attest.sh/

slavik0329 commented 10 months ago

I don't know, why revoking off-chain attestation needs to interact with the EAS contract.

Writing to contract will cost gas. it's unfriendly to off-chain operations.

You can come up with your own scheme if you want to revoke fully offchain, however there would be no way for anyone to know whether an attestation was revoked unless they also had in their possession the revocation. This is why it makes sense. Revoking offchain only publishes a single bytes32 hash. Along with merkle trees it can be extremely cheap to revoke and maintain attestation safety.