pub trait Operation<N: Network, Value: Parser + ToBits, ValueType: Parser, const NUM_OPERANDS: usize> {
    const OPCODE: Opcode;

    fn evaluate(inputs: &[Value; NUM_OPERANDS]) -> Result<Value>;
    fn execute<A: Aleo<Network = N>>(
        inputs: &[Literal<A>; NUM_OPERANDS]
    ) -> Result<Literal<A>>; fn output_type(inputs: &[ValueType; NUM_OPERANDS]) -> Result<ValueType>; }

Required Associated Constants

The opcode of the operation.

Required Methods

Returns the result of evaluating the operation on the given inputs.

Returns the result of executing the operation on the given circuit inputs.

Returns the output type from the given input types.

Implementors