getEncodedProgram method

Uint8List getEncodedProgram()

Get the encoded representation of the program with a prefix suitable for signing.

Implementation

Uint8List getEncodedProgram() {
  // Prepend the program prefix
  final txBytes = utf8.encode(LOGIC_PREFIX);

  // Merge the byte arrays
  return Uint8List.fromList([...txBytes, ...logic]);
}