BlockHashSink constructor
Initialize a new sink for the block hash
Parameters:
blockLength
is the length of each block in each $update call.bufferLength
is the buffer length where blocks are stored temporarily
Implementation
BlockHashSink(this.blockLength, {int? bufferLength})
: assert(blockLength > 0 && (bufferLength ?? 0) >= 0),
buffer = Uint8List(bufferLength ?? blockLength);