SHA256
8
0
Fork
You've already forked vks-client
0
generated from Shadow53/rust-template
Register and find keys on keys.openpgp.org or any other Hagrid keyserver
  • Rust 94.8%
  • HTML 5.2%
2026年03月09日 19:47:14 +01:00
src adding OutOfMemory error value for C API 2026年03月09日 18:53:03 +01:00
tests remove unused import 2026年01月08日 21:57:25 +01:00
.gitignore add vim ws files to .gitignore 2026年01月10日 11:26:01 +01:00
build.rs use cbindgen.toml config 2025年12月22日 19:02:16 +01:00
Cargo.toml bump version number 2026年03月09日 19:47:14 +01:00
cbindgen.toml generate decorated enum names to avoid name clashes 2025年12月22日 19:22:22 +01:00
LICENSE.txt LGPL 2.1 or later 2025年12月12日 16:54:37 +01:00
README.md we do not need this anymore, the default cargo build will do 2025年12月18日 02:01:37 +01:00

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:

usestd::fs;usevks_client::*;#[tokio::test]asyncfn register_test_key_for_test_address(){letOk(session)=Session::init()else{assert!(false);return;};letkeydata=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?;