toTxFormat method

List<int> toTxFormat()

Implementation

List<int> toTxFormat() {
  var derbuf = this.toDer();
  var buf = Uint8List(1);
  ByteData.view(buf.buffer).setUint8(0, this.nHashType!);
  var list = List<int>.from([
    ...derbuf,
    ...buf,
  ]);
  return list;
}