MultihashUtils class

Helpers for computing and decoding multihashes.

This class is a thin wrapper around package:dart_multihash that provides the hash functions most commonly used by dart_ipfs_core.

Properties

hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited

Static Methods

decode(Uint8List bytes) MultihashInfo
Decodes a multihash byte array.
encode(String name, Uint8List hash) MultihashInfo
Encodes raw hash bytes with the named multihash function.
sha256(Uint8List hash) MultihashInfo
Encodes hash with the SHA2-256 multihash function.