multiformats - v13.3.6
    Preparing search index...

    Interface MultihashHasher<Code>

    Hasher represents a hashing algorithm implementation that produces as MultihashDigest.

    interface MultihashHasher<Code extends number = number> {
        code: Code;
        name: string;
        digest(
            input: Uint8Array,
        ): MultihashDigest<Code> | Promise<MultihashDigest<Code>>;
    }

    Type Parameters

    • Code extends number = number

    Hierarchy (View Summary)

    Implemented by

    Index

    Properties

    Methods

    Properties

    code: Code

    Code of the multihash

    name: string

    Name of the multihash

    Methods