vks_client

Crates.iovks_client
lib.rsvks_client
version0.1.14
created_at2025-12-22 07:24:06.834181+00
updated_at2026-01-15 14:12:15.006899+00
descriptionClient implementation of the Verifying Keyserver (VKS) interface
homepage
repositoryhttps://codeberg.org/pEp/vks-client
max_upload_size
id1999257
size156,319
Volker Birk (fdik)

documentation

README

Client implementation of the Verifying Keyserver (VKS) interface

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

Sample code

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?;
Commit count: 147

cargo fmt