pub trait TransactionCommitmentInterface {
type AccountUpdate: AccountUpdateInterface;
type CallForest: CallForestInterface;
type W: WitnessGenerator<Fp>;
// Required methods
fn empty() -> Fp;
fn commitment(account_updates: &Self::CallForest) -> Fp;
fn full_commitment(
account_updates: &Self::AccountUpdate,
memo_hash: Fp,
commitment: Fp,
w: &mut Self::W,
) -> Fp;
}
Required Associated Types§
type AccountUpdate: AccountUpdateInterface
type CallForest: CallForestInterface
type W: WitnessGenerator<Fp>
Required Methods§
fn empty() -> Fp
fn commitment(account_updates: &Self::CallForest) -> Fp
fn full_commitment( account_updates: &Self::AccountUpdate, memo_hash: Fp, commitment: Fp, w: &mut Self::W, ) -> Fp
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.