pub trait ComposableIndex: Debug {
// Required method
fn compose_index(
&self,
key: &IndexKey,
plaintext: ComposablePlaintext,
accumulator: Accumulator,
) -> Result<Accumulator, EncryptionError>;
// Provided method
fn compose_query(
&self,
key: &IndexKey,
plaintext: ComposablePlaintext,
accumulator: Accumulator,
) -> Result<Accumulator, EncryptionError> { ... }
}
Expand description
Trait to represent any index that can be composed with other indexes in a Structured Encryption scheme.