home

kskb.dev/data · documents with their text · this document in the catalog

docs/keria_app.rst

repository prose file · license Apache-2.0 · 3743 characters · the original · source weboftrust-keria-main

KERIA App API

keria.app.agenting

.. automodule:: keria.app.agenting :members:

Agency and Agent Configuration

A KERIA Agency can be configured with either environment variables or a configuration file. The configuration file is a JSON file. Both alternatives are shown here.

Environment Variables

.. code-block:: bash

# Service Endpoint Location URLs creating Endpoint Role Authorizations and Location Scheme records on startup
export KERIA_CURLS="https://url1,https://url2"
# Introduction URLs resolved on startup (OOBIs)
export KERIA_IURLS="https://url3,https://url4"
# Data OOBI URLs resolved on startup
export KERIA_DURLS="https://url5,https://url6"
# how long before an agent can be idle before shutting down; defaults to 1 day
export KERIA_RELEASER_TIMEOUT=86400

JSON Configuration File

To use the JSON configuration file option make sure to mount the JSON file to the directory you specify with the --config-dir option and name the JSON file the name specified by the --config-dir option to the keria start command like so.

With the absolute path version the --config-dir argument does not have an affect since the --config-file argument specifies the absolute path to the JSON file.

.. code-block:: bash

# Relative path version, interpreted relative to directory executing keria binary from.
# This means the file "keria.json" must exist in the "scripts/keri/cf" folder
keria start \
    --config-dir scripts \
    --config-file keria

# Absolute path version
keria start \
    --config-dir /path/to/config-dir/keria.json \
    --config-file /path/to/config-dir/keria.json

The JSON file must have an object with the same name that you sent to the keria start command via the --name argument. The default is "keria" which is why the JSON file below shows a sub-object named "keria". Make sure to include the "dt" date timestamp field or the configuration will not be loaded.

You can configure the cycle time, or tocks, of the escrower as well as the agent initializer.

You can also configure the CURLs, IURLs, and DURLs of the agent. CURLs are Service Endpoint Location URLs creating Endpoint Role Authorizations and Location Scheme records on startup. IURLS are Introduction URLs resolved on startup (OOBIs). DURLS are Data OOBI URLs resolved on startup usually of things like ACDC credential schemas or ACDC credential CESR streams.

.. code-block:: json

{
  "dt": "2025-01-13T16:08:30.123456+00:00",
  "keria": {
    "dt": "2025-01-13T16:08:30.123457+00:00",
    "curls": ["http://127.0.0.1:3902/"]
  },
  "iurls": [
    "http://127.0.0.1:5642/oobi/BBilc4-L3tFUnfM_wJr4S4OJanAv_VmF_dJNN6vkf2Ha/controller?name=Wan&tag=witness",
    "http://127.0.0.1:5643/oobi/BLskRTInXnMxWaGqcpSyMgo0nYbalW99cGZESrz3zapM/controller?name=Wil&tag=witness",
    "http://127.0.0.1:5644/oobi/BIKKuvBwpmDVA4Ds-EpL5bt9OqPzWPja2LigFYZN2YfX/controller?name=Wes&tag=witness"
  ],
  "tocks": {
    "initer": 0.0,
    "escrower": 1.0
  }
}

keria.app.aiding

.. automodule:: keria.app.aiding :members:

keria.app.credentialing

.. automodule:: keria.app.credentialing :members:

keria.app.indirecting

.. automodule:: keria.app.indirecting :members:

keria.app.notifying

.. automodule:: keria.app.notifying :members:

keria.app.presenting

.. automodule:: keria.app.presenting :members:

keria.app.specing

.. automodule:: keria.app.specing :members:

WebOfTrust / keria-main, https://github.com/WebOfTrust/keria/blob/main/docs/keria_app.rst. Licensed under the Apache License 2.0; the license and any notices are in the repository. Found through KERISSE. The abstract, the level and the labels on the catalog entry are the KERISuite Knowledge Base's own, CC BY 4.0.

Powered by Datasette · Queries took 97.656ms