C Interface

At a Glance

  • Of all the interfaces DIDKit exposes, the C library is closest to the Rust original.

  • For a quick function & type reference, you can study the test.c file.

  • A C header file can be built, but it resides in a separate crate that must be compiled separately after building DIDKit. Instructions can be found here.

  • To build manually and just for Android, building from the C wrapper is faster and simpler than going through Flutter; for instructions, see the Android section below.


Install Rust and DIDKit as usual and then:


# from DIDKit root directory:
make -C lib ../target/release/libdidkit.so


# from DIDKit root directory:
make -C lib ../target/test/c.stamp

More detailed C tests can be found in the C library of the DIDKit repository on GitHub. This doubles as a comprehensive code snippet demonstrating key calls and responses in C.



C wrapper

Last updated