Interface MultihashDigest<Code>

Represents a multihash digest which carries information about the hashing algorithm and an actual hash digest.

interface MultihashDigest<Code> {
    bytes: Uint8Array;
    code: Code;
    digest: Uint8Array;
    size: number;
}

Type Parameters

  • Code extends number = number

Implemented by

Properties

Properties

bytes: Uint8Array

Binary representation of this multihash digest.

code: Code

Code of the multihash

digest: Uint8Array

Raw digest (without a hashing algorithm info)

size: number

byte length of the this.digest