multiformats - v13.4.0
    Preparing search index...

    Interface DigestOptions

    interface DigestOptions {
        truncate?: number;
    }
    Index

    Properties

    Properties

    truncate?: number

    Truncate the returned digest to this number of bytes.

    This may cause the digest method to throw/reject if the passed value is greater than the digest length or below a threshold under which the risk of hash collisions is significant.

    The actual value of this threshold can depend on the hashing algorithm in use.