Data packet.

Hierarchy

  • PublicFields
    • Data

Implements

Constructors

  • Construct from flexible arguments.

    Arguments can include, in any order unless otherwise specified:

    • Data to copy from
    • Name or name URI
    • Data.ContentType(v)
    • Data.FreshnessPeriod(v)
    • Data.FinalBlock (must appear after Name)
    • Uint8Array as Content

    Parameters

    Returns Data

Properties

[FIELDS]: Fields
content: Uint8Array = ...
contentType: number
finalBlockId?: Component
freshnessPeriod: number
isFinalBlock: boolean
name: Name = ...
sigInfo: SigInfo = ...
sigValue: Uint8Array = ...

Methods

  • Determine if a Data can satisfy an Interest.

    Parameters

    Returns Promise<boolean>

    a Promise that will be resolved with the result.

  • Compute the implicit digest.

    Returns Promise<Uint8Array>

  • Return the full name if the implicit digest is already computed.

    Returns undefined | Name

  • Return the implicit digest if it's already computed.

    Returns undefined | Uint8Array

Generated using TypeDoc