Skip to main content

addmod

Function addmod 

pub fn addmod<IT, H>(
    context: InstructionContext<'_, H, IT>,
) -> Result<(), InstructionResult>
where IT: InterpreterTypes, H: ?Sized,
Expand description

Implements the ADDMOD instruction.

Pops three values from stack and pushes (a + b) % n.