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