register static method

void register(
  1. BlockHashBase<BlockHashSink> algo, [
  2. String? name
])

Register a new BlockHashBase algorithm on the fly given a string name

Implementation

static void register(BlockHashBase algo, [String? name]) {
  _buildRegistry();
  name = _norm(name ?? algo.name);
  _blockHash[name] = algo;
}