Type alias Operation<ProgramState>

Operation<ProgramState>: ((state) => ProgramState)

Operations define the behavior of an opcode in an InstructionSet.

Operations should be written as efficiently as possible, and may safely mutate the ProgramState. If needed, the AuthenticationVirtualMachine will clone the ProgramState before providing it to an operation.

Type Parameters

  • ProgramState

Type declaration

Generated using TypeDoc