computeChecksum static method

List<int> computeChecksum(
  1. List<int> dataBytes
)

Compute and return the checksum for the provided List

Parameters:

  • dataBytes: The List

Returns: A List

Implementation

static List<int> computeChecksum(List<int> dataBytes) {
  final doubleSha256Digest = QuickCrypto.sha256DoubleHash(dataBytes);
  return doubleSha256Digest.sublist(0, Base58Const.checksumByteLen);
}