Crate defuse_crypto

Source
Expand description

Internal cryptographic primitives used across the Intents ecosystem.

This crate defines lightweight traits such as Payload and SignedPayload that allow Intents to treat messages from different signing standards uniformly. Implementations of these traits live in companion crates like tip191, erc191, or bip322 and are primarily intended for internal use.

Modules§

serde

Structs§

Ed25519
P256
Secp256k1

Enums§

CurveType
ParseCurveError
PublicKey
Signature

Traits§

Curve
Payload
Data that can be deterministically hashed for signing or verification.
SignedPayload
Extension of Payload for types that include a signature.
TypedCurve

Type Aliases§

CryptoHash
Raw type for 32 bytes of the hash.