Python Library¶
The package is keri_system in src/keri-system/python. It needs Python 3.11 or later.
Node¶
| Member | Purpose |
|---|---|
Node(path, passphrase, network, role, governance, policy, wallet=None, watcher_quorum=None) |
Create or load an identity |
start(), close() |
Start and stop background work |
aid, roots |
Identifier, trusted roots |
publish() |
Send events to the witnesses |
handler(route) |
Decorator for a request handler |
message(recipient, route, payload, credential=None) |
Signed request |
submit(message), request(message, timeout=60) |
Process a message |
open_reply(message, sender) |
Verify a reply |
delegation_seal(), approve_delegation(seal) |
Delegation |
update_policy(policy) |
Replace the policy |
Components¶
| Attribute | Purpose |
|---|---|
manager |
Key event log: rotate, anchor, sign, envelope, pending, broadcast, state |
identity |
resolve, assess |
schemas |
add, get |
issuer |
issue, revoke, registry |
verifier |
verify |
evidence |
get, find, verify |
gateway |
Queues, output, wait |
Errors¶
All errors derive from KeriError and have a code.
| Class | Code | Meaning |
|---|---|---|
Unavailable |
unavailable |
Too few witnesses or watchers answered. Retry |
Pending |
pending |
Waiting for receipts. Retry |
Conflict |
conflict |
Conflicting events. Rotate to recover your own identity |
SignatureError |
signature |
Signature does not satisfy the threshold |
CredentialError, Revoked |
credential, revoked |
Credential is invalid or revoked |
InvalidEvent |
invalid_event |
Malformed event |
VaultError |
vault |
Keys are not available |
ConfigError |
config |
Role, governance or policy is invalid |
DIDComm¶
keri_system.didcomm exports DID, DIDAgent, Engine, KeyRing, Mediator, Publisher, Resolver and message.