| Crates.io | aranya-keygen |
| lib.rs | aranya-keygen |
| version | 2.0.0 |
| created_at | 2024-10-16 21:46:06.457471+00 |
| updated_at | 2025-08-20 18:51:55.428883+00 |
| description | Utilities for generating crypto keys |
| homepage | |
| repository | https://github.com/aranya-project/aranya |
| max_upload_size | |
| id | 1412382 |
| size | 39,271 |
A utility crate for generating cryptographic key bundles for Aranya. This crate provides:
The aranya-keygen crate simplifies the process of generating and managing cryptographic keys for Aranya applications. It provides a unified interface to create key bundles containing:
use anyhow::Result;
use aranya_crypto::{Engine, KeyStore};
use aranya_keygen::KeyBundle;
fn generate_keys<E, S>(engine: &mut E, store: &mut S) -> Result<()>
where
E: Engine,
S: KeyStore,
{
// Generate a new key bundle
let key_bundle = KeyBundle::generate(engine, store)?;
// Load the public keys from the bundle
let public_keys = key_bundle.public_keys(engine, store)?;
// Use the public keys as needed
// ...
Ok(())
}