aegis-wallet · ceremony
Declared module signatures, types, configuration, and source documentation.
Source: aegis/aegis-wallet/src/ceremony.rs. SHA-256: a055fca11bc466142b5dd1c9b53c850fcd5abd683995151fedd37f61341c366a.
This source reference follows declared modules and preserves feature attributes. It includes public declarations and implementation methods in those modules. Private-module exports and trait resolution still require the compiler; not every declaration is a crate-root import. Function bodies and constant values are omitted. Source comments describe their implementation context and are not a production deployment claim.
ceremony::SigningRequest
A request to sign a message within a signing ceremony.
#[derive(Debug, Clone)]
pub struct SigningRequest {
/// Raw message bytes to sign.
pub message: Vec<u8>,
/// DID of the entity requesting the signature.
pub signer_did: String,
/// Optional chain context (for chain-specific signing rules).
pub chain: Option<Chain>
}Source line: 15.
ceremony::SigningResult
The result of a signing ceremony.
#[derive(Debug, Clone)]
pub struct SigningResult {
/// The raw signature bytes.
pub signature: Vec<u8>,
/// The public key of the signer.
pub public_key: Vec<u8>,
/// The signing mode used.
pub mode: SigningMode
}Source line: 26.
ceremony::SigningBackend
Trait for pluggable signing backends.
Implementations include direct key signing, MPC threshold signing, TEE-enclave signing, and external KMS delegation.
#[async_trait]
pub trait SigningBackend: Send + Sync {
/// Execute a signing ceremony for the given request.
async fn sign(&self, request: &SigningRequest) -> Result<SigningResult, WalletError>;
/// Return the public key bytes for this signer.
fn public_key(&self) -> &[u8];
/// The signing mode this backend implements.
fn mode(&self) -> SigningMode;
}Source line: 40.
ceremony::DirectSigner
Direct signing backend using a single Ed25519 key.
The key material is zeroized when the struct is dropped.
#[derive(ZeroizeOnDrop)]
pub struct DirectSigner {
}Source line: 55.
ceremony::DirectSigner::new
Create a new direct signer from an Ed25519 signing key.
pub fn new(signing_key: SigningKey) -> Self;Source line: 66.
ceremony::DirectSigner::verifying_key
Return the Ed25519 verifying (public) key.
pub fn verifying_key(&self) -> VerifyingKey;Source line: 75.
ceremony::verify_signature
Verify an Ed25519 signature against a message and public key.
Convenience function for verifying signatures produced by DirectSigner.
pub fn verify_signature(
public_key_bytes: &[u8],
message: &[u8],
signature_bytes: &[u8],
) -> Result<bool, WalletError>;Source line: 114.