signify-ts
    Preparing search index...

    Class Identifier

    Identifier

    Index

    Constructors

    Properties

    Methods

    • Authorize an endpoint provider in a given role for a managed identifier

      Parameters

      • name: string

        Name or alias of the identifier

      • role: string

        Authorized role for eid

      • Optionaleid: string

        Optional qb64 of endpoint provider to be authorized

      • Optionalstamp: string

        Optional date-time-stamp RFC-3339 profile of iso8601 datetime. Now is the default if not provided

      Returns Promise<EventResult>

      A promise to the result of the authorization

      Typically used to authorize the agent to be the endpoint provider for the identifier in the role of agent

    • Authorises a new location scheme (endpoint) for a particular endpoint identifier.

      Parameters

      • name: string

        Name or alias of the identifier to sign reply message

      • args: LocSchemeArgs

      Returns Promise<EventResult>

      A promise to the result of the authorization

    • Parameters

      • name: string
      • Optionaldata: any

      Returns Promise<{ jsondata: any; serder: any; sigs: any }>

    • Get information for a managed identifier

      Parameters

      • name: string

        Prefix or alias of the identifier

      • OptionalrequireAccepted: true

        When true, requires key state to be present and throws otherwise. Key state is absent only for a multisig group whose inception is still collecting member signatures; pass false to fetch such a pending group.

      Returns Promise<HabState>

      A promise to the identifier information, narrowed to HabState unless requireAccepted is false

    • Get information for a managed identifier

      Parameters

      • name: string

        Prefix or alias of the identifier

      • requireAccepted: false

        When true, requires key state to be present and throws otherwise. Key state is absent only for a multisig group whose inception is still collecting member signatures; pass false to fetch such a pending group.

      Returns Promise<HabState | PendingHabState>

      A promise to the identifier information, narrowed to HabState unless requireAccepted is false

    • Get information for a managed identifier

      Parameters

      • name: string

        Prefix or alias of the identifier

      • requireAccepted: boolean

        When true, requires key state to be present and throws otherwise. Key state is absent only for a multisig group whose inception is still collecting member signatures; pass false to fetch such a pending group.

      Returns Promise<HabState | PendingHabState>

      A promise to the identifier information, narrowed to HabState unless requireAccepted is false

    • Generate an interaction event in a managed identifier

      Parameters

      • name: string

        Prefix or alias of the identifier

      • Optionaldata: any

        Option data to be anchored in the interaction event

      Returns Promise<EventResult>

      A promise to the interaction event result

    • List managed identifiers

      Parameters

      • Optionalstart: number = 0

        Start index of list of notifications, defaults to 0

      • Optionalend: number = 24

        End index of list of notifications, defaults to 24

      Returns Promise<any>

      A promise to the list of managed identifiers

    • Get the members of a group identifier

      Parameters

      • name: string

        Name or alias of the identifier

      Returns Promise<
          {
              rotation: {
                  aid: string;
                  ends: {
                      agent: null
                      | { [key: string]: { [key: string]: string } };
                      controller: null | { [key: string]: { [key: string]: string } };
                      judge: null | { [key: string]: { [key: string]: string } };
                      juror: null | { [key: string]: { [key: string]: string } };
                      mailbox: null | { [key: string]: { [key: string]: string } };
                      peer: null | { [key: string]: { [key: string]: string } };
                      registrar: null | { [key: string]: { [key: string]: string } };
                      watcher: null | { [key: string]: { [key: string]: string } };
                      witness: null | { [key: string]: { [key: string]: string } };
                  };
              }[];
              signing: {
                  aid: string;
                  ends: {
                      agent: null
                      | { [key: string]: { [key: string]: string } };
                      controller: null | { [key: string]: { [key: string]: string } };
                      judge: null | { [key: string]: { [key: string]: string } };
                      juror: null | { [key: string]: { [key: string]: string } };
                      mailbox: null | { [key: string]: { [key: string]: string } };
                      peer: null | { [key: string]: { [key: string]: string } };
                      registrar: null | { [key: string]: { [key: string]: string } };
                      watcher: null | { [key: string]: { [key: string]: string } };
                      witness: null | { [key: string]: { [key: string]: string } };
                  };
              }[];
          },
      >

      • A promise to the list of members
    • Update managed identifier

      Parameters

      • name: string

        Prefix or alias of the identifier

      • info: IdentifierInfo

        Information to update for the given identifier

      • OptionalrequireAccepted: true

        When true, requires key state to be present on the updated identifier and throws otherwise; pass false to update a still-pending multisig group.

      Returns Promise<HabState>

      A promise to the identifier information after updating, narrowed to HabState unless requireAccepted is false

    • Update managed identifier

      Parameters

      • name: string

        Prefix or alias of the identifier

      • info: IdentifierInfo

        Information to update for the given identifier

      • requireAccepted: false

        When true, requires key state to be present on the updated identifier and throws otherwise; pass false to update a still-pending multisig group.

      Returns Promise<HabState | PendingHabState>

      A promise to the identifier information after updating, narrowed to HabState unless requireAccepted is false

    • Update managed identifier

      Parameters

      • name: string

        Prefix or alias of the identifier

      • info: IdentifierInfo

        Information to update for the given identifier

      • requireAccepted: boolean

        When true, requires key state to be present on the updated identifier and throws otherwise; pass false to update a still-pending multisig group.

      Returns Promise<HabState | PendingHabState>

      A promise to the identifier information after updating, narrowed to HabState unless requireAccepted is false