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-M25+36-1250aba8-SNAPSHOT // for DID and DID Comm
libraryDependencies += "app.fmgp" %% "did-imp" % 0.1.0-M25+36-1250aba8-SNAPSHOT // for crypto implementation
libraryDependencies += "app.fmgp" %% "did-framework" % 0.1.0-M25+36-1250aba8-SNAPSHOT //for utils
libraryDependencies += "app.fmgp" %% "did-method-peer" % 0.1.0-M25+36-1250aba8-SNAPSHOT // for resolver of the did method `peer`
libraryDependencies += "app.fmgp" %% "did-method-web" % 0.1.0-M25+36-1250aba8-SNAPSHOT // for resolver the did method `web`
libraryDependencies += "app.fmgp" %% "did-uniresolver" % 0.1.0-M25+36-1250aba8-SNAPSHOT // 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-web
is our implementation of of thedid:peer
anddid:web
methods. -
did-uniresolver
is 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-example
is just a list DID knowd identities, Like mediator and other agents. Also, contends some utilities. -
multiformats
is our implementation of Multiformats used bydid-peer