Function assembleBytecode
- assemble
Bytecode(opcodes, disassembledBytecode): CompilationResultParseError | {
bytecode: Uint8Array;
success: true;
} | CompilationResultReduceError<AuthenticationProgramStateCommon> | CompilationResultResolveError<AuthenticationProgramStateCommon> | CompilationResultSuccess<AuthenticationProgramStateCommon> Parameters
opcodes: {
[opcode: string]: Uint8Array;
}a mapping of opcodes to their respective Uint8Array representation
[opcode: string]: Uint8Array
disassembledBytecode: string
the disassembled bytecode to re-assemble
Returns CompilationResultParseError | {
bytecode: Uint8Array;
success: true;
} | CompilationResultReduceError<AuthenticationProgramStateCommon> | CompilationResultResolveError<AuthenticationProgramStateCommon> | CompilationResultSuccess<AuthenticationProgramStateCommon>
Generated using TypeDoc

Re-assemble a string of disassembled bytecode (see disassembleBytecode).