computeChecksum static method
Compute and return the checksum for the provided List dataBytes
.
The checksum is obtained by performing a double SHA-256 hash and extracting
the first Base58Const.checksumByteLen bytes.
Parameters:
- dataBytes: The List of data bytes for which the checksum is computed.
Returns: A List containing the computed checksum.
Implementation
static List<int> computeChecksum(List<int> dataBytes) {
final doubleSha256Digest = QuickCrypto.sha256DoubleHash(dataBytes);
return doubleSha256Digest.sublist(0, Base58Const.checksumByteLen);
}