decentralized-identity / veramo

A JavaScript Framework for Verifiable Data
https://veramo.io
Apache License 2.0
440 stars 131 forks source link

Does DAF support EIP 1271 for allowing signing a transaction by a Smart Contract? #225

Closed Muhammad-Altabba closed 4 years ago

Muhammad-Altabba commented 4 years ago

Hello, Does DAF support have the Identity as a Smart Contract? Does DAF support https://github.com/ethereum/EIPs/issues/1271? Thanks,

mirceanis commented 4 years ago

TL;DR: it doesn't, but..

Not out of the box, but there is no reason this kind of think wouldn't be possible. DAF itself is not even meant to act like an eth wallet, but it could become the backbone for one if the proper plug-ins are written and used.

mirceanis commented 4 years ago

Please reopen if you think a better answer is needed or if the question is worth exploring more.

Muhammad-Altabba commented 4 years ago

How exactly can someone write a proper plug-in for this? Thanks,

mirceanis commented 4 years ago

good question :) I guess it's tough to answer while the implementation is still in debate for that EIP. I'm not familiar with that particular EIP and it would take me too long to get acquainted enough to answer.

But, in essence this plugin would need to perform the function of a normal ethereum wallet, which in the end boils down to getting access to the keys to sign some data.

DAF has some key management functionality which means it could be used as such. At this point, regarding ethereum keys, the function that DAF provides is to wrap the signing capabilities in a way that can be used by ethr-did to perform some DID operations and by ethr-status-registry to perform credential revocation. I'm guessing this could be extended to fit the needs of this EIP

Muhammad-Altabba commented 4 years ago

Thank you @mirceanis,

I could not find anything that needs to be changed ethr-did. Do you mean at https://github.com/decentralized-identity/did-jwt/ instead?

Thanks,