toAddress method

  1. @override
String toAddress(
  1. NetworkInfo networkType, {
  2. Uint8List? h160,
})
override

returns the address's string encoding

Implementation

@override
String toAddress(NetworkInfo networkType, {Uint8List? h160}) {
  final bytes = hexToBytes(publicHex);
  Uint8List ripemd160Hash = hash160(bytes);
  return super.toAddress(networkType, h160: ripemd160Hash);
}