kli
piped ingestion/excretion without mailbox/polling
#481
Replies: 5 comments 1 reply
-
+1 for a good idea and another +1 for using the word 'excretion' :) |
Beta Was this translation helpful? Give feedback.
-
Just realized this may already be possible with |
Beta Was this translation helpful? Give feedback.
-
The direct mode demo code directory examples do something like this. i.e. send the dependencies first so new events immediately resolve. This works well for single sig identifiers. This is more problematic with multi-sig and delegated identifiers. |
Beta Was this translation helpful? Give feedback.
-
Thanks Sam! |
Beta Was this translation helpful? Give feedback.
-
Here's some code for ingestion if anyone is doing integration testing: from keri.app import habbing
from keri.vdr import (eventing, credentialing, verifying)
from keri import help
import logging
with habbing.openHab(name="test", temp=False) as (hby, hab):
help.ogler.resetLevel(level=logging.DEBUG)
rgy = credentialing.Regery(hby=hby, name='test', base='')
vry = verifying.Verifier(hby=hby, reger=rgy.reger)
vry.resolver.add('.. schema said goes here ..', b'.. schema goes here ..')
raw = (
"""
.. messages go here ..
"""
)
hby.psr.vry = vry
hby.psr.tvy = vry.tvy
hby.psr.parse(bytearray(raw.replace('\n', '').encode("utf-8"))) |
Beta Was this translation helpful? Give feedback.
-
Sometimes (when developing another implementation for instance - when validating correctness) it would be useful to be able to put data directly in a db. Likewise, it would be useful to pull this data from a db.
Consider this scriptable example (assumes
-i
has been implemented forvc export
):which could be extended to perform integration testing for other implementations:
The idea is that input would look something like an unpretty version of this data (with signatures), at a minimum:
This provides everything needed to verify an ACDC. The idea would be that if chained, many ACDCs, KELs and TELs would be returned, sequenced such that dependency SAIDs resolve before their use (suitable for unproxied ingestion).
Beta Was this translation helpful? Give feedback.
All reactions