-
Notifications
You must be signed in to change notification settings - Fork 6
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
DID creation / update / deactivate reponse #112
Comments
Output from the call today:
|
Any thoughts on calling Thought it might make sense given that it is a port able did! No biggie if not. Just staring at |
While they are verbose, I do appreciate the symmetry of Something about IMHO If you do want to change, what about:
These two methods enable the round-trip conversion of DID types, ensuring that DID material & metadata can be transformed between runtime and portable formats, thereby enabling interoperability between the various Web5 SDKs. If the method is All that being said... It seems regardless of the language that it should be |
@frankhinek do you think the guidance in the spec today is sufficient? if not, what should we add? also, I added some actions for test coverage around this. please add more detail / actions as you see fit #167 |
Context
The W3C DID Core specification contains guidance for the data structure to be returned by the
resolve
anddereference
functions:Additionally, there draft community report that a new W3C WG is being started to finalize:
No such guidance exists for other DID registration operations such as
create
,update
, anddeactivate
. The closest is a draft DIF spec that one of the W3C DID Core editors started:Current State of SDKs
At present, the shape of result returned by
create
implementations vary widely by SDK:It is expected and a positive that each SDK takes a slightly different approach to implementation due to idiomatic differences. However, it would be beneficial to have some general consistency on what is returned when a new DID is created, and for those DID methods that support it, updated or deactivated.
Proposal for
Did
object returned bycreate()
orupdate()
Proposal for
DidMethod.create()
DidMethod.create()
a local key manager that stores keys in-memory will be used for key generation using a default algorithm (e.g.,Ed25519
)verificationMethods
that specify additional verification methods to add to the DID document.services
which will be an array ofDidService
objects.Did
object or instance (depending on the SDK) that hasuri
,didDocument
,keyManager
, andmetadata
properties along with a convenience functiongetSigner()
that returns a signer that cansign()
andverify()
arbitrary data.Pseudo type definition for simple methods like DID JWK:
Type definition for a more complex method like DID DHT:
DidMethod.fromKeys()
Did
object ascreate()
.DidMethod.fromKeyManager()
keyManager
.DidMethod.toKeys()
After either
create()
orfromKeys()
returns aDid
object/instance, a developer can transform (or "export") the DID back to aPortableDid
.The text was updated successfully, but these errors were encountered: