Skip to main content

Module hab

Module hab 

Source
Expand description

Shared keystore access for commands that operate on identifiers.

Every command opens one libkeri::Habery for the keystore, which reloads identifiers and key state from the database, does its work through a Hab view, and drops it on exit.

Functions§

catchup
Send own KEL of alias to witnesses wits that are new to it (keripy Receiptor.catchup), before they are asked to receipt a rotation that adds them.
collect_receipts
Submit own event sn of alias to each witness’s /receipts and store the receipts (keripy Receiptor.receipt, i.e. kli incept --receipt-endpoint). Returns the number of witnesses that receipted.
open
Open (or create) the keystore name. salt (qb64) only takes effect when the keystore is first created.
propagate_receipts 🔒
Send each witness of own event sn the other witnesses’ receipts (keripy Receiptor.receipt second phase), so every witness holds a fully witnessed event and can serve it. Failures are reported, not fatal: the receipts are already collected.
receipt_count
Number of witness signatures stored for own event sn of alias.
witness_url
HTTP URL of witness wit, learned by resolving its OOBI.