Trait soroban_sdk::auth::CustomAccountInterface
source · pub trait CustomAccountInterface {
type Signature;
type Error: Into<Error>;
// Required method
fn __check_auth(
env: Env,
signature_payload: BytesN<32>,
signatures: Self::Signature,
auth_contexts: Vec<Context>
) -> Result<(), Self::Error>;
}
Expand description
Custom account interface that a contract implements to support being used as a custom account for auth.
Once a contract implements the interface, call to Address::require_auth
for the contract’s address will call its __check_auth
implementation.
Required Associated Types§
Required Methods§
Object Safety§
This trait is not object safe.