prependTransactionType function

Uint8List prependTransactionType(
  1. int type,
  2. Uint8List transaction
)

Implementation

Uint8List prependTransactionType(int type, Uint8List transaction) {
  return Uint8List(transaction.length + 1)
    ..[0] = type
    ..setAll(1, transaction);
}