Import Library
The frist step is to import the Library that you need.
Getting Started with Scala-did
To install ScalaDID in a scala project
libraryDependencies += "app.fmgp" %% "did" % 0.1.0-M33 // for DID and DID Comm
libraryDependencies += "app.fmgp" %% "did-imp" % 0.1.0-M33 // for crypto implementation
libraryDependencies += "app.fmgp" %% "did-framework" % 0.1.0-M33 //for utils
libraryDependencies += "app.fmgp" %% "did-method-peer" % 0.1.0-M33 // for resolver of the did method `peer`
libraryDependencies += "app.fmgp" %% "did-method-web" % 0.1.0-M33 // for resolver the did method `web`
libraryDependencies += "app.fmgp" %% "did-uniresolver" % 0.1.0-M33 // for calling the resolver uniresolver
In a crossProject for the JSPlatform and JVMPlatform this should be %%% instead of %%
You can check the latest available of versions (for JVM and JS) in here:
Modules
Let got module by module
-
did- -
did-imp -
did-framework -
did-peer&did-webis our implementation of of thedid:peeranddid:webmethods. -
did-uniresolveris an intregation with the uniresolver. So you can use the uniresolver to resolver thedid methods. You can use the publicly available uniresolver or a custom one. -
did-exampleis just a list DID knowd identities, Like mediator and other agents. Also, contends some utilities. -
multiformatsis our implementation of Multiformats used bydid-peer