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 Version = 1

    CID version

Hierarchy

Properties

[Marker]?: Data
byteLength: number
byteOffset: number
bytes: ByteView<Link<Data, Format, Alg, V>>
code: Format
multihash: MultihashDigest<Alg>
version: V

Methods

  • Parameters

    • other: unknown

    Returns other is Link<Data, Format, Alg, Version>

  • Returns Link<Data, Format, Alg, V>

  • Type Parameters

    • Prefix extends string

    Parameters

    Returns ToString<Link<Data, Format, Alg, Version>, Prefix>

  • Returns Link<Data, Format, Alg, 1>

Generated using TypeDoc