encode static method

MultihashInfo encode(
  1. String name,
  2. Uint8List hash
)

Encodes raw hash bytes with the named multihash function.

Supported names include sha2-256, sha2-512, blake2b-256, etc.

Implementation

static dm.MultihashInfo encode(String name, Uint8List hash) =>
    dm.Multihash.encode(name, hash);