Import Library

January 3, 2024 ยท View on GitHub

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" % @VERSION@ // for DID and DID Comm
 libraryDependencies += "app.fmgp" %% "did-imp" % @VERSION@ // for crypto implementation
 libraryDependencies += "app.fmgp" %% "did-framework" % @VERSION@ //for utils
 libraryDependencies += "app.fmgp" %% "did-method-peer" % @VERSION@ // for resolver of the did method `peer`
 libraryDependencies += "app.fmgp" %% "did-method-web" % @VERSION@ // for resolver the did method `web`
 libraryDependencies += "app.fmgp" %% "did-uniresolver" % @VERSION@ // 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:

Maven Central did Scala version support did Scala version support

Modules

Let got module by module

  • did -

  • did-imp

  • did-framework

  • did-peer & did-web is our implementation of of the did:peer and did:web methods.

  • did-uniresolver is an intregation with the uniresolver. So you can use the uniresolver to resolver the did 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 by did-peer