defuse_crypto/
lib.rs

1//! Internal cryptographic primitives used across the Intents ecosystem.
2//!
3//! This crate defines lightweight traits such as [`Payload`] and
4//! [`SignedPayload`] that allow Intents to treat messages from different
5//! signing standards uniformly. Implementations of these traits live in
6//! companion crates like `tip191`, `erc191`, or `bip322` and are primarily
7//! intended for internal use.
8
9mod curve;
10mod payload;
11mod public_key;
12mod signature;
13
14pub use self::{curve::*, payload::*, public_key::*, signature::*};
15
16#[cfg(feature = "serde")]
17pub mod serde;