Options
All
  • Public
  • Public/Protected
  • All
Menu

Class Interest

Interest packet.

Hierarchy

  • Fields
    • Interest

Implements

Index

Constructors

constructor

  • Construct from flexible arguments.

    Arguments can include, in any order:

    • Interest to copy from
    • Name or name URI
    • Interest.CanBePrefix
    • Interest.MustBeFresh
    • Interest.Nonce(v)
    • Interest.Lifetime(v)
    • Interest.HopLimit(v)
    • Uint8Array as AppParameters

    Parameters

    Returns Interest

Properties

Readonly [FIELDS]

[FIELDS]: Fields

Optional appParameters

appParameters: Uint8Array

canBePrefix

canBePrefix: boolean = false

Optional fwHint

fwHint: FwHint

mustBeFresh

mustBeFresh: boolean = false

name

name: Name = ...

Optional paramsPortion

paramsPortion: Uint8Array

Optional sigInfo

sigInfo: SigInfo

sigValue

sigValue: Uint8Array = ...

Optional signedPortion

signedPortion: Uint8Array

Accessors

hopLimit

  • get hopLimit(): number
  • set hopLimit(v: number): void

lifetime

  • get lifetime(): number
  • set lifetime(v: number): void

nonce

  • get nonce(): undefined | number
  • set nonce(v: undefined | number): void

Methods

[OP]

  • [OP](sign: LLSign): Promise<void>

[OP]

encodeTo

updateParamsDigest

  • updateParamsDigest(): Promise<void>

validateParamsDigest

  • validateParamsDigest(): Promise<void>

Static decodeFrom

Generated using TypeDoc