toHash160 method

String toHash160({
  1. bool compressed = true,
})

returns the hash160 hex string of the public key

Implementation

String toHash160({bool compressed = true}) {
  final bytes = hexToBytes(toHex(compressed: compressed));
  return bytesToHex(hash160(bytes));
}