Installation
Installing DIDKit
Last updated
Was this helpful?
Installing DIDKit
Last updated
Was this helpful?
DIDKit can be installed as a package via , from source, or in form.
Any major GNU/Linux distribution, including MacOS or Microsoft's
DIDKit is written in . To get Rust, you can use .
We do not depend on any Rust nightly features, so our installation instructions assume the most recent stable
version; be sure to to nightly
if the calling application or forked source code does depend on them.
To install the DIDKit command line program on GNU/Linux, MacOS, or Windows+WSL, first install .
Install libssl-dev
, as well as pkg-config
,build-essential
, or equivalent core toolsets if they aren't already installed.
Then simply run cargo install
for the given target package: didkit-cli
For example, for DIDKit CLI, run:
This will add the binary DIDKit to your Cargo installation (typically ~/.cargo/bin), which can be added to your system's PATH for ease of use.
This will give you the DIDKit CLI executable located at target/debug/didkit
You can configure your didkit-http
server by editing the defaults.toml
file.
Both the CLI and HTTP server are containerised and available under ghcr.io/spruceid/didkit-(cli|http)
.
You can use the images like CLIs:
Note: You can pass JWKs either by sharing a volume with
docker run --volume
, or by passing the JWK directly withdocker run -e JWK=$MY_JWK
ordocker run didkit-http --jwk $MY_JWK
.
After you have made sure ssi
is present in the root of didkit
, then the images can be built with:
And to use them, replace ghcr.io/spruceid/didkit-(cli|http):latest
with didkit-(cli|http)
.
While many of the DIDKit interfaces can be installed as libraries via each language's dedicated package manager, they can also be built manually. For instructions, see the "Installation" section of each interface's dedicated page in the section to the left.
Build DIDKit using , from root directory of DIDKit project:
DIDKit also offers a didkit
-powered HTTP server for internal or external use, depending on your context in a separate crate. For comprehensive documentation of the HTTP commands and configuration options, see , and for a more skimmable overview, see the HTTP server.
You can also build and install DIDKit's components separately. Building the FFI libraries will require additional dependencies. See the for more info.
The image is private for now, so a is required. Once created you can login like so:
The Dockerfiles rely on having in the root of didkit
(a symbolic link will not work, unfortunately).