Files
signer/src/lib.rs
T

37 lines
960 B
Rust

//! # nsigner — Attended Nostr signing daemon
//!
//! Rust port of the C-based `n_signer`. Holds signing key material in
//! locked memory and signs on request via a JSON-RPC 2.0 API over
//! multiple transports (Unix socket, TCP, HTTP, stdio, qrexec).
//!
//! This is a **program, not a daemon**: no background process, no
//! runtime config files, no persistence. Closing the terminal or
//! quitting the program ends the trust session and destroys state.
pub mod secure_mem;
pub mod mnemonic;
pub mod role_table;
pub mod selector;
pub mod enforcement;
pub mod policy;
pub mod key_store;
pub mod alg_cache;
pub mod pq_crypto;
pub mod pq_drbg;
pub mod dispatcher;
pub mod server;
pub mod transport;
pub mod http;
pub mod auth_envelope;
pub mod miner;
pub mod otp_pad;
pub mod socket_name;
pub mod tui;
pub mod tui_continuous;
pub mod error;
pub use error::NsignerError;
/// Version string (matches C NSIGNER_VERSION).
pub const VERSION: &str = "v0.0.1";