Cotal TypeScript packages
    Preparing search index...

    Function reloadStoreIdentityFromCredsPath

    • Identity of the store a --creds file is reloaded from.

      With --creds the store object is deliberately FLAT (root = the file's own directory, key = basename). The canonical store is <root>/.cotal with a segmented key. Different store objects, but when --creds names THE FILE THE MANAGER WRITES they resolve THE SAME FILE, so they are the same authority. Identity names that authority, not the store object's root.

      The manager remints only segmentedKey(DELIVERY_CREDS_KIND, space) under <root>/.cotal. Collapse only that exact path: basename is delivery.creds, parent of the file dir is .cotal, and the file dir is spaceSegment(space) for THIS space. Another space's segment, a decoy basename, .cotal/auth/..., or a legacy <root>/.cotal/delivery.creds keep dirname. Never spaceFromSegment ("a valid segment") and never findCotalRoot.

      Parameters

      • credsPath: string
      • space: string

      Returns SecretStoreIdentity