txId method

String txId()

Calculates txid and returns it

Implementation

String txId() {
  final bytes = toBytes(segwit: false);
  final h = doubleHash(bytes).reversed.toList();
  return bytesToHex(h);
}