multiformats - v14.0.0
    Preparing search index...

    Class Hasher<Name, Code>

    Hasher represents a hashing algorithm implementation that produces as MultihashDigest.

    Type Parameters

    • Name extends string
    • Code extends number

    Implements

    Index

    Constructors

    Properties

    code: Code

    Code of the multihash

    encode: (input: Uint8Array) => Await<Uint8Array<ArrayBuffer>>

    Returns the raw digest representation of the binary input (e.g. without hashing codec)

    maxDigestLength?: number
    minDigestLength: number
    name: Name

    Name of the multihash

    Methods