aegis-wallet · external
Declared module signatures, types, configuration, and source documentation.
Source: aegis/aegis-wallet/src/external.rs. SHA-256: 6c01aa5e92517f9a44fcbf3a8ec698289ab07be900c3e615f1ebb6aebcd1cbe8.
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.
external::ExternalSigner
External signer interface for organizations with existing KMS/HSM.
Implementors provide their own signing logic (AWS KMS, GCP Cloud KMS, Hashicorp Vault, hardware tokens, etc.) and expose a uniform interface to the AEGIS wallet infrastructure.
#[async_trait]
pub trait ExternalSigner: Send + Sync {
/// Sign an arbitrary message using the external signing service.
async fn sign(&self, message: &[u8]) -> Result<Vec<u8>, WalletError>;
/// Return the public key bytes from the external signer.
fn get_public_key(&self) -> Vec<u8>;
}Source line: 20.
external::ExternalSignerAdapter
Adapter that wraps any ExternalSigner into a SigningBackend.
This allows external KMS implementations to participate in the standard AEGIS signing ceremony and transaction pipeline.
pub struct ExternalSignerAdapter {
}Source line: 32.
external::ExternalSignerAdapter::new
Create a new adapter wrapping the given external signer.
pub fn new(signer: Box<dyn ExternalSigner>) -> Self;Source line: 41.