Interface Link<Data, Format, Alg, V>

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

  • Data extends unknown = unknown

  • Format extends number = number

  • Alg extends number = number

  • V extends UCAN.LinkVersion = 1

    CID version

Hierarchy

Implemented by

Properties

[Marker]?: Data
byteLength: number
byteOffset: number
bytes: ByteView<Link<Data, Format, Alg, V>>
code: Format
equals: ((other) => other is Link<Data, Format, Alg, UCAN.LinkVersion>)

Type declaration

link: (() => Link<Data, Format, Alg, V>)

Type declaration

    • (): Link<Data, Format, Alg, V>
    • Returns Link<Data, Format, Alg, V>

multihash: MultihashDigest<Alg>
toString: (<Prefix>(base?) => ToString<Link<Data, Format, Alg, UCAN.LinkVersion>, Prefix>)

Type declaration

toV1: (() => Link<Data, Format, Alg, 1>)

Type declaration

    • (): Link<Data, Format, Alg, 1>
    • Returns Link<Data, Format, Alg, 1>

version: V

Generated using TypeDoc