Represents an IPLD link to a specific data of type T.

Template

Logical type of the data being linked to.

Template

multicodec code corresponding to a codec linked data is encoded with

Template

multicodec code corresponding to the hashing algorithm of the CID

Type Parameters

  • T extends unknown = unknown

Hierarchy

Properties

[Marker]?: T
byteLength: number
byteOffset: number
bytes: ByteView<Link<T, 112, 18, 0>>
code: 112
equals: ((other: unknown) => other is Link<T, 112, 18, Version>)

Type declaration

    • (other: unknown): other is Link<T, 112, 18, Version>
    • Parameters

      • other: unknown

      Returns other is Link<T, 112, 18, Version>

link: (() => Link<T, 112, 18, 0>)

Type declaration

    • (): Link<T, 112, 18, 0>
    • Returns Link<T, 112, 18, 0>

multihash: MultihashDigest<18>
toJSON: (() => {
    code: 112;
    hash: Uint8Array;
    version: 0;
})

Type declaration

    • (): {
          code: 112;
          hash: Uint8Array;
          version: 0;
      }
    • Returns {
          code: 112;
          hash: Uint8Array;
          version: 0;
      }

      • code: 112
      • hash: Uint8Array
      • version: 0
toString: (<Prefix>(base?: MultibaseEncoder<Prefix>) => ToString<Link<T, 112, 18, Version>, Prefix>)

Type declaration

toV1: (() => Link<T, 112, 18, 1>)

Type declaration

    • (): Link<T, 112, 18, 1>
    • Returns Link<T, 112, 18, 1>

version: 0

Generated using TypeDoc