Skip to main content

Crate trustless_protocol

Crate trustless_protocol 

Source
Expand description

Protocol types, codec, handler trait, and client for the Trustless key provider protocol.

This crate implements the communication protocol between the Trustless proxy and key provider processes. Key providers hold TLS private keys and perform signing operations on behalf of the proxy, communicating over stdin/stdout with length-delimited JSON messages.

§For key provider implementors

Implement the handler::Handler trait and call handler::run to start the event loop. See trustless-provider-filesystem for a complete example.

§For proxy internals

Use client::ProviderClient to communicate with a spawned provider process.

Modules§

base64
Base64-serializable byte types for use with secrecy::SecretBox.
client
Async client for communicating with a key provider process.
codec
Length-delimited codec for framing and serializing messages.
error
Error types for protocol operations.
handler
Handler trait and event loop for implementing key providers.
message
Protocol message types (requests, responses, parameters, results).
scheme
Signature scheme name parsing and algorithm mapping.