Skip to main content

Crate qopanza

Crate qopanza 

Source
Expand description

Rust client for the Qopanza API.

Covers the crypto endpoints (keys, encrypt, decrypt, sign, verify), the AI analysis endpoint, and the scanner/posture endpoints that make the API useful from CI. Account signup, billing and support are dashboard concerns and are not part of this SDK — the same scoping the Python, Go, TypeScript and Java SDKs use.

use qopanza::Client;

let client = Client::new("http://localhost:8000", "qsk_...");

// One-line encryption: no key management at all.
let sealed = client.encrypt(None, b"customer sensitive information").await?;
let opened = client.decrypt(&sealed).await?;
assert_eq!(opened, b"customer sensitive information");

Byte handling is &[u8] / Vec<u8> at the API boundary rather than base64 strings: base64 is a wire-format detail, and making callers encode it themselves is how a plaintext ends up double-encoded in production.

This client holds a secret API key, so it belongs server-side.

Structs§

Analysis
Client
CryptoAsset
Encrypted
Everything needed to decrypt. Pass it straight back to Client::decrypt rather than reassembling the fields by hand.
Finding
Inventory
InventoryEntry
Key
Posture
The account’s overall quantum-security position.
ScanRun
One discovery run.
Signature

Enums§

Error
Everything that can go wrong.

Constants§

DEFAULT_BASE_URL