Interface MultihashHasher<Code>

Hasher represents a hashing algorithm implementation that produces as MultihashDigest.

interface MultihashHasher<Code> {
    code: Code;
    name: string;
    digest(input): MultihashDigest<Code> | Promise<MultihashDigest<Code>>;
}

Type Parameters

  • Code extends number = number

Hierarchy (view full)

Implemented by

Properties

Methods

Properties

code: Code

Code of the multihash

name: string

Name of the multihash

Methods