spruceid / did-tezos

The Decentralized Identifier method for the Tezos blockchain.
https://did-tezos.spruceid.com
Apache License 2.0
9 stars 1 forks source link

DID manager program should be able to retrieve current active key and service endpoint in smart contract #14

Open wyc opened 3 years ago

sbihel commented 3 years ago

Should we add a TZIP-016 getter for the active key so users don't need to pass the public key to the resolver?

wyc commented 3 years ago

I think that makes sense. I think it would be great to have that in a future release, and I'm wondering if we can even get it from the transaction metadata due to a Tezos transaction revealing the pubkey. This could eliminate a field in the smart contract, which is a good thing. It may have impact on the testability, however.

wyc commented 3 years ago

If we do keep the public_key field in the rotation_event, perhaps we should name it something also such as active_public_key to add clarity as to which public key we mean.