KERI Library (libkeri)
Key Event Receipt Infrastructure (KERI) in Rust
The Key Event Receipt Infrastructure (KERI) is a system designed to provide a secure identity basis using cryptographic key management, rotation and verification.
This repository contains a Rust implementation of KERI, designed to be used as a C-callable library. The implementation follows the KERI Protocol Specification.
Description
KERI provides a secure foundation for decentralized identity management. Unlike traditional Public Key Infrastructure (PKI), which relies on centralized certificate authorities, KERI enables secure key rotation without the need for a central authority.
From a reliability engineering perspective, KERI solves key management problems in a portable, interoperable, and secure manner.
Features of this implementation:
- C-compatible library interface for cross-language integration
- Designed after the KERIpy class structure and naming convention (using Rust idioms where appropriate)
- Minimalist approach with few dependencies
- High performance and memory efficiency
- Cross-platform support
Installation
Prerequisites
- Rust 1.85 or later
- Cargo
Building from Source
Using as a Dependency
[]
= { = "https://github.com/WebOfTrust/kerir.git" }
C-Callable Library
This implementation is designed as a C-callable library, allowing integration with applications written in C, C++, and other languages that support the C ABI. The library exposes a set of functions that can be called from C code to interact with KERI functionality.
Using the C API
int
Examples
Key Management
use Keri;
Database Operations
use LMDBer;
API Documentation
Generate and view the API documentation with:
Project Status
This project is under active development. Not all features of the KERI protocol specification have been implemented yet.
Contributing
Contributions are welcome! Please feel free to submit a Pull Request.
- Fork the repository
- Create your feature branch (
git checkout -b feature/amazing-feature) - Commit your changes (
git commit -m 'Add some amazing feature') - Push to the branch (
git push origin feature/amazing-feature) - Open a Pull Request
License
This project is licensed under the Apache License 2.0 - see the LICENSE file for details.