InstructionSet is a mapping of methods which define the operation of
AuthenticationVirtualMachine. An instruction set is specific to a
single consensus setting of a single network, e.g.
An instruction set is composed of
Operations which take a
and return a
ProgramState, as well as the
verify "lifecycle" methods.
Each operation is assigned to its
opcode number (between 0 and 255). When
evaluating instructions, the virtual machine will select an Operation based
on its opcode. Any opcodes which are unassigned by the instruction set will
ProgramState and return a new copy of that
Test the ProgramState to determine if execution should continue.
Evaluate a program to completion given the
A mapping of
opcode numbers (between 0 and 255) to
Operations. When the
AuthenticationVirtualMachine encounters an instruction for the specified
opcode, the program state will be passed to the specified operation.
This operation is called when an undefined opcode is encountered.
Verify a program state has completed evaluation successfully.
Generated using TypeDoc