C Interface
- Of all the interfaces DIDKit exposes, the C library is closest to the Rust original.
- 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.
- All the low-level calls that DIDKit exposes for C are documented in the C-module section of the Rust documentation.
- 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.
# 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.
Tool | Example |
---|---|
C wrapper |
Last modified 1yr ago