cheekzi / waltid-iota-identity-wrapper

IOTA identity wrapper

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

walt.id IOTA identity wrapper

This is a simple RUST library, wrapping the IOTA identity framework, exposing a plain C interface, that can be loaded via dynamic library loading in most languages such as Java, etc.

The library is used by the walt.id SSIKit, to integrate IOTA DID management and resolution.

Currently the only supported actions are:

  • Did creation and registration on the IOTA tangle
  • Did resolution via the IOTA tangle

Build

To build the library, you need to have a RUST build environment on your development workstation.

RUST build environment

Set up the RUST build environment, e.g. using rustup:

RUST installation

rustup.rs

Or using another installation method depending on your operating system.

Release build

To build the library with the release compiler configuration, execute the cargo build command like so:

cargo build --release

The command automatically loads all dependencies and builds the library. The build output can be found here:

Linux:

./target/release/libwaltid_iota_identity_wrapper.so

Note: the library file name may look different on operating systems other than Linux

SSIKit integration

For the integration with the SSI Kit, make sure the wrapper library is in the library search path of your operating system. On Windows, this is usually the working directory, on Linux you may need to set the LD_LIBRARY_PATH environment variable:

export LD_LIBRARY_PATH=/path/to/waltid-iota-identity-wrapper/target/release

Then run the SSI Kit did creation or resolution commands, e.g.:

ssikit did create -m iota

ssikit did resolve -d did:iota:...

About

IOTA identity wrapper


Languages

Language:Rust 96.8%Language:Dockerfile 3.2%