| Crates.io | vks_client |
| lib.rs | vks_client |
| version | 0.1.14 |
| created_at | 2025-12-22 07:24:06.834181+00 |
| updated_at | 2026-01-15 14:12:15.006899+00 |
| description | Client implementation of the Verifying Keyserver (VKS) interface |
| homepage | |
| repository | https://codeberg.org/pEp/vks-client |
| max_upload_size | |
| id | 1999257 |
| size | 156,319 |
Use this to download keys from https://keys.openpgp.org or any other Hagrid Key server implementation
Use this to upload keys to https://keys.openpgp.org or any other Hagrid Key server implementation and make them discoverable under an email address, respectively
Use a Session to work with the protocol implementation like this:
use std::fs;
use vks_client::*;
#[tokio::test]
async fn register_test_key_for_test_address() {
let Ok(session) = Session::init() else {
assert!(false);
return;
};
let keydata = fs::read_to_string("tests/koo_test.asc")
.expect("cannot read koo_test.asc");
assert_eq!(session.submit_key_and_verify(keydata.as_bytes().to_vec(),
"koo_test@dingens.org").await, Ok(()));
}
// When later a confirmation email arrives from the keyserver deliver it to the protocol
// implementation
session.verificaton_mail_received(maildata).await?;