ethereum-attestation-service / eas-sdk

Ethereum Attestation Service - TypeScript/JavaScript SDK
MIT License
95 stars 47 forks source link

Please add some examples for delegated attestation and delegated proxy attestation #39

Closed shrekuu closed 1 year ago

shrekuu commented 1 year ago

Hi @slavik0329 , I see we only have on-chain/off-chain attestation examples.

Please add some examples about delegated on-chain attestation, as well as some delegated proxy on-chain attestation.

Thanks. ❤️

Currently I am using the code from the tests. I use signDelegatedProxyAttestation on server side, then use attestByDelegationProxy on the client side, to achieve this feature: "you have a single entity like a KYC provider attesting to many users while wanting the users to pay for the gas" . I haven't get it work correctly.

lbeder commented 1 year ago

Do you still have this issue? Using signDelegatedProxyAttestation and attestByDelegationProxy is the right approach.

shrekuu commented 12 months ago

@lbeder No. In the end, I got it working with the code from the tests. Thanks. It would be great if you could add more examples in the README.md file maybe.