API reference · Browser and Node
@toip-tools/eventlog
133 public exports.
import { aidDid, aidOfDid, aidOfDidKey } from "@toip-tools/eventlog";
Functions
-
aidDidThe DID we use for an AID.
-
aidOfDid -
aidOfDidKey -
anchoredInWhere a digest is anchored: KEL seals {d}, and trail entries' `a` or `x`.
-
attachmentsOfThe CESR text of a message's attachments.
-
bindingDigestThe binding's digest: Blake3-256 of JCS of the document with its proof.
-
bindingSeal -
buildIcp -
buildIxn -
buildRct -
buildRot -
buildTcl -
buildTen -
buildTin -
buildTrcA receipt or endorsement of a trail message.
-
checkBody -
checkTrailRefChecks a trailRef {i, s, d} against a witness: fetches the entry, its receipts and the controller's KEL, and verifies them.
-
coldKeysFromSeedKey set j is HKDF-SHA256(seed, salt "zk-toip/eventlog", info "<label>/<j>/<n>").
-
decode -
decodeIndexedSig -
decodeKeyRefSig -
didKeyOf -
digestBlake3-256 digest, code E.
-
digestSealA digest seal {d} for 32 raw digest bytes: SHA-256 (code I, the default, as capture's Merkle roots) or Blake3 (code E).
-
discloseSends a bundle (with the bodies chosen for this reader) over TSP: `trail/disclose`.
-
ed25519Signer -
encode -
encodeIndexedSig -
encodeKeyRefSig -
endorseAn endorsement of a trail entry by a did:key identity (a counterparty, a principal).
-
evidenceFromJson -
evidenceToJson -
exportBundleEverything needed to verify an AID's logs offline: KEL (all versions, so recoveries show), trails with receipts and endorsements,
-
fetchTrailFor a watcher or explorer: a trail's stream, and the KEL, from one source.
-
fromCompactRebuilds the exact JSON and checks the SAID.
-
fromCompactLog -
fromStreamParses a stream.
-
httpWitnessClient -
isCurrentAtWhether the keys made current at `estSn` were current at event `atSn`.
-
isQb64 -
keyAtKeys made current by the establishment event at `estSn`.
-
keyQb64The signer's public key as a transferable KERI key: D (Ed25519) or 1AAJ (P-256).
-
localWitnessClientA client for a witness in the same process.
-
makeBinding -
makeBodyMakes a body: adds a random salt `u` and its SAID `d`.
-
makeReceiptA witness receipt.
-
nextKeyDigestDigest of a public key's qb64 text, as KERIpy and signify-ts compute next-key digests.
-
nonTransferableAid -
onDisclose -
onDuplicity -
p256Signer -
parseMessageParses raw message text: version, size, type, exact field order, canonical form, and SAID.
-
problem -
reportDuplicitySends duplicity evidence to someone who relies on the log: `trail/duplicity`.
-
retiredAtThe sn of the rotation that retired the keys of `estSn`, or null if they are current.
-
saidifyFills the version string and SAID fields.
-
serveWitnessTasksServes a witness on an endpoint whose identity is the witness's own key (its did:key).
-
signerFromIdentityReuses a did:key identity's Ed25519 key.
-
stateOfThe establishment state made current by the event at `estSn`.
-
taskWitnessClientA witness reached over TSP at its did:key.
-
toCompact -
toCompactLogA whole log in compact form: its trunk messages in order, with their witness signatures,
-
toStream -
verifyBinding -
verifyBundle -
verifyEvidenceChecks evidence with only the evidence and the controller's KEL.
-
verifyKelVerifies a KEL stream or message list.
-
verifyKeySigVerifies one indexed signature by a transferable key over `message`.
-
verifySignatureChecks a signature made outside the log against the key state it names, and whether it was anchored while that key was current.
-
verifyTrail -
versionString -
webAuthnSignerA hook for passkeys.
-
webCryptoSignerA WebCrypto key pair (Ed25519 or ECDSA P-256).
-
witnessHttpHandlerRoutes, relative to wherever the handler is mounted:
Classes
-
Controller -
KelProcessorProcesses KEL events and receipts one at a time.
-
MemoryStore -
Trail -
TrailProcessorProcesses a trail's messages against a verified KEL.
-
Watcher -
Witness -
WitnessError
Interfaces
-
Anchor -
BodyA body: JSON with its SAID `d` and a random salt `u`.
-
Bundle -
BundleResult -
ColdKeys -
Couple -
DidBinding -
DuplicityEvidence -
InceptOptions -
IndexedSig -
KelEvent -
KelResult -
KeyRef -
KeyRefSigA `-F` group: the key state that signed, and its indexed signatures.
-
KeyState -
LogStore -
Problem -
PublishReport -
RotateOptions -
SignatureCheck -
SignedMessage -
Signer -
SigOptions -
StoreData -
StoredMessage -
StoredReceipt -
TrailEntry -
TrailRefCheck -
TrailResult -
TrailVerifyOptions -
VerifyOptions -
WebAuthnAssertion -
WebAuthnPolicy -
WebAuthnWrapA WebAuthn assertion that wraps a P-256 signature.
-
WitnessClient -
WrappedSignatureWhat a signer returns: a 64-byte signature, or one wrapped in a WebAuthn assertion.
Types
-
Curve -
EntryStatus -
EventStatus -
IndexedSigCodeIndexed signature codes: A/B/2A/2B for Ed25519, E/F/2E/2F for ECDSA P-256.
-
MessageType -
ProblemCode -
Protocol -
Qb64Shared types.
-
Refusal -
Seal -
SubmitResult
Constants
Signatures and source documentation are generated from packages/eventlog/src/index.ts.