A "timed operation" is a command or sequence of commands that operate with a failsafe timer that will abort the operation if it does not complete within a specific window.

FailsafeContext maintains the failsafe timer and tracks information required to rollback state if the operation aborts.

Timed operations are exclusive for a node.

Constructors

Accessors

Methods

  • Build a new Fabric object for a new fabric for the "AddNoc" case of the Operational Credentials cluster.

    Parameters

    • nocData: {
          adminVendorId: VendorId;
          caseAdminSubject: NodeId;
          icacValue: undefined | Uint8Array;
          ipkValue: Uint8Array;
          nocValue: Uint8Array;
      }
      • adminVendorId: VendorId
      • caseAdminSubject: NodeId
      • icacValue: undefined | Uint8Array
      • ipkValue: Uint8Array
      • nocValue: Uint8Array

    Returns Promise<Fabric>

  • Build a new Fabric object based on an existing fabric for the "UpdateNoc" case of the Operational Credentials cluster.

    Parameters

    • nocValue: Uint8Array
    • icacValue: undefined | Uint8Array

    Returns Promise<Fabric>

  • Handles a CSR from OperationalCredentials cluster and stores additional internal information for further validity checks.

    Parameters

    • isForUpdateNoc: boolean
    • sessionId: number

    Returns Uint8Array