keri-ts 0.9.0 → 0.10.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/esm/cesr/mod.js +2 -2
- package/esm/cesr/src/adapters/async-iterable.js +1 -1
- package/esm/cesr/src/adapters/effection.js +2 -2
- package/esm/cesr/src/annotate/annotator.js +3 -3
- package/esm/cesr/src/annotate/comments.js +3 -3
- package/esm/cesr/src/annotate/render.js +11 -11
- package/esm/cesr/src/bench/parser-benchmark.js +1 -1
- package/esm/cesr/src/core/parser-attachment-collector.js +4 -4
- package/esm/cesr/src/core/parser-constants.js +1 -1
- package/esm/cesr/src/core/parser-engine.js +9 -9
- package/esm/cesr/src/core/parser-frame-parser.js +13 -13
- package/esm/cesr/src/core/parser-stream-state.js +2 -2
- package/esm/cesr/src/index.js +81 -81
- package/esm/cesr/src/parser/attachment-fallback-policy.js +1 -1
- package/esm/cesr/src/parser/attachment-parser.js +1 -1
- package/esm/cesr/src/parser/cold-start.js +1 -1
- package/esm/cesr/src/parser/group-dispatch.js +11 -11
- package/esm/cesr/src/primitives/aggor.js +11 -11
- package/esm/cesr/src/primitives/bexter.js +5 -5
- package/esm/cesr/src/primitives/blinder.js +3 -3
- package/esm/cesr/src/primitives/byte-like.js +1 -1
- package/esm/cesr/src/primitives/cigar.js +3 -3
- package/esm/cesr/src/primitives/cipher.js +6 -6
- package/esm/cesr/src/primitives/codex.js +5 -5
- package/esm/cesr/src/primitives/compactor.js +3 -3
- package/esm/cesr/src/primitives/counter.js +5 -5
- package/esm/cesr/src/primitives/dater.js +4 -4
- package/esm/cesr/src/primitives/decimer.js +5 -5
- package/esm/cesr/src/primitives/decrypter.js +9 -9
- package/esm/cesr/src/primitives/diger.js +7 -7
- package/esm/cesr/src/primitives/disclosure.js +9 -9
- package/esm/cesr/src/primitives/encrypter.js +12 -12
- package/esm/cesr/src/primitives/hydrate.js +8 -8
- package/esm/cesr/src/primitives/ilker.js +4 -4
- package/esm/cesr/src/primitives/indexer.js +4 -4
- package/esm/cesr/src/primitives/labeler.js +5 -5
- package/esm/cesr/src/primitives/mapper.js +15 -15
- package/esm/cesr/src/primitives/matter.js +4 -4
- package/esm/cesr/src/primitives/mediar.js +3 -3
- package/esm/cesr/src/primitives/noncer.js +4 -4
- package/esm/cesr/src/primitives/number.js +3 -3
- package/esm/cesr/src/primitives/pather.js +5 -5
- package/esm/cesr/src/primitives/prefixer.js +3 -3
- package/esm/cesr/src/primitives/registry.js +2 -2
- package/esm/cesr/src/primitives/saider.js +7 -7
- package/esm/cesr/src/primitives/salter.js +7 -7
- package/esm/cesr/src/primitives/sealed-box.js +1 -1
- package/esm/cesr/src/primitives/sealer.js +3 -3
- package/esm/cesr/src/primitives/seqner.js +3 -3
- package/esm/cesr/src/primitives/siger.js +3 -3
- package/esm/cesr/src/primitives/signer.js +9 -9
- package/esm/cesr/src/primitives/streamer.js +1 -1
- package/esm/cesr/src/primitives/structing.js +10 -10
- package/esm/cesr/src/primitives/structor.js +5 -5
- package/esm/cesr/src/primitives/tagger.js +4 -4
- package/esm/cesr/src/primitives/texter.js +4 -4
- package/esm/cesr/src/primitives/tholder.js +6 -6
- package/esm/cesr/src/primitives/traitor.js +4 -4
- package/esm/cesr/src/primitives/unknown.js +1 -1
- package/esm/cesr/src/primitives/verfer.js +6 -6
- package/esm/cesr/src/primitives/verser.js +5 -5
- package/esm/cesr/src/serder/native.js +26 -26
- package/esm/cesr/src/serder/serder.js +23 -23
- package/esm/cesr/src/serder/serdery.js +4 -4
- package/esm/cesr/src/serder/smell.js +3 -3
- package/esm/cesr/src/tables/counter-codex.js +1 -1
- package/esm/cesr/src/tables/counter-groups.js +1 -1
- package/esm/cesr/src/tables/counter-version-registry.js +3 -3
- package/esm/cesr/src/tables/counter.tables.generated.js +1 -1
- package/esm/cesr/src/tables/indexer.tables.generated.js +1 -1
- package/esm/cesr/src/tables/matter.tables.generated.js +1 -1
- package/esm/cesr/src/version.js +2 -2
- package/esm/keri/npm/src/cesr/mod.js +3 -0
- package/esm/keri/npm/src/cesr/src/adapters/async-iterable.js +25 -0
- package/esm/keri/npm/src/cesr/src/adapters/effection.js +15 -0
- package/esm/keri/npm/src/cesr/src/annotate/annotator.js +55 -0
- package/esm/keri/npm/src/cesr/src/annotate/comments.js +44 -0
- package/esm/keri/npm/src/cesr/src/annotate/denot.js +23 -0
- package/esm/keri/npm/src/cesr/src/annotate/render.js +348 -0
- package/esm/keri/npm/src/cesr/src/bench/parser-benchmark.js +134 -0
- package/esm/keri/npm/src/cesr/src/core/bytes.js +132 -0
- package/esm/keri/npm/src/cesr/src/core/cbor.js +122 -0
- package/esm/keri/npm/src/cesr/src/core/errors.js +85 -0
- package/esm/keri/npm/src/cesr/src/core/parser-attachment-collector.js +153 -0
- package/esm/keri/npm/src/cesr/src/core/parser-constants.js +74 -0
- package/esm/keri/npm/src/cesr/src/core/parser-deferred-frames.js +73 -0
- package/esm/keri/npm/src/cesr/src/core/parser-engine.js +212 -0
- package/esm/keri/npm/src/cesr/src/core/parser-frame-parser.js +644 -0
- package/esm/keri/npm/src/cesr/src/core/parser-policy.js +137 -0
- package/esm/keri/npm/src/cesr/src/core/parser-stream-state.js +62 -0
- package/esm/keri/npm/src/cesr/src/core/recovery-diagnostics.js +25 -0
- package/esm/keri/npm/src/cesr/src/core/vocabulary.js +47 -0
- package/esm/keri/npm/src/cesr/src/index.js +81 -0
- package/esm/keri/npm/src/cesr/src/parser/attachment-fallback-policy.js +142 -0
- package/esm/keri/npm/src/cesr/src/parser/attachment-parser.js +8 -0
- package/esm/keri/npm/src/cesr/src/parser/cold-start.js +23 -0
- package/esm/keri/npm/src/cesr/src/parser/group-dispatch.js +720 -0
- package/esm/keri/npm/src/cesr/src/primitives/aggor.js +428 -0
- package/esm/keri/npm/src/cesr/src/primitives/bexter.js +63 -0
- package/esm/keri/npm/src/cesr/src/primitives/blinder.js +36 -0
- package/esm/keri/npm/src/cesr/src/primitives/byte-like.js +19 -0
- package/esm/keri/npm/src/cesr/src/primitives/cigar.js +42 -0
- package/esm/keri/npm/src/cesr/src/primitives/cipher.js +103 -0
- package/esm/keri/npm/src/cesr/src/primitives/codex.js +107 -0
- package/esm/keri/npm/src/cesr/src/primitives/compactor.js +314 -0
- package/esm/keri/npm/src/cesr/src/primitives/counter.js +348 -0
- package/esm/keri/npm/src/cesr/src/primitives/dater.js +36 -0
- package/esm/keri/npm/src/cesr/src/primitives/decimer.js +61 -0
- package/esm/keri/npm/src/cesr/src/primitives/decrypter.js +134 -0
- package/esm/keri/npm/src/cesr/src/primitives/diger.js +82 -0
- package/esm/keri/npm/src/cesr/src/primitives/disclosure.js +300 -0
- package/esm/keri/npm/src/cesr/src/primitives/encrypter.js +142 -0
- package/esm/keri/npm/src/cesr/src/primitives/hydrate.js +49 -0
- package/esm/keri/npm/src/cesr/src/primitives/ilker.js +26 -0
- package/esm/keri/npm/src/cesr/src/primitives/indexer.js +295 -0
- package/esm/keri/npm/src/cesr/src/primitives/labeler.js +80 -0
- package/esm/keri/npm/src/cesr/src/primitives/mapper.js +802 -0
- package/esm/keri/npm/src/cesr/src/primitives/matter.js +400 -0
- package/esm/keri/npm/src/cesr/src/primitives/mediar.js +36 -0
- package/esm/keri/npm/src/cesr/src/primitives/noncer.js +35 -0
- package/esm/keri/npm/src/cesr/src/primitives/number.js +31 -0
- package/esm/keri/npm/src/cesr/src/primitives/pather.js +132 -0
- package/esm/keri/npm/src/cesr/src/primitives/prefixer.js +25 -0
- package/esm/keri/npm/src/cesr/src/primitives/primitive.js +23 -0
- package/esm/keri/npm/src/cesr/src/primitives/registry.js +19 -0
- package/esm/keri/npm/src/cesr/src/primitives/saider.js +105 -0
- package/esm/keri/npm/src/cesr/src/primitives/salter.js +116 -0
- package/esm/keri/npm/src/cesr/src/primitives/sealed-box.js +41 -0
- package/esm/keri/npm/src/cesr/src/primitives/sealer.js +30 -0
- package/esm/keri/npm/src/cesr/src/primitives/seqner.js +31 -0
- package/esm/keri/npm/src/cesr/src/primitives/siger.js +84 -0
- package/esm/keri/npm/src/cesr/src/primitives/signer.js +257 -0
- package/esm/keri/npm/src/cesr/src/primitives/streamer.js +28 -0
- package/esm/keri/npm/src/cesr/src/primitives/structing.js +727 -0
- package/esm/keri/npm/src/cesr/src/primitives/structor.js +124 -0
- package/esm/keri/npm/src/cesr/src/primitives/tagger.js +43 -0
- package/esm/keri/npm/src/cesr/src/primitives/texter.js +28 -0
- package/esm/keri/npm/src/cesr/src/primitives/tholder.js +573 -0
- package/esm/keri/npm/src/cesr/src/primitives/traitor.js +26 -0
- package/esm/keri/npm/src/cesr/src/primitives/unknown.js +89 -0
- package/esm/keri/npm/src/cesr/src/primitives/verfer.js +72 -0
- package/esm/keri/npm/src/cesr/src/primitives/verser.js +71 -0
- package/esm/keri/npm/src/cesr/src/router/router-stub.js +18 -0
- package/esm/keri/npm/src/cesr/src/serder/native.js +1359 -0
- package/esm/keri/npm/src/cesr/src/serder/serder.js +1727 -0
- package/esm/keri/npm/src/cesr/src/serder/serdery.js +61 -0
- package/esm/keri/npm/src/cesr/src/serder/smell.js +82 -0
- package/esm/keri/npm/src/cesr/src/tables/codex-utils.js +11 -0
- package/esm/keri/npm/src/cesr/src/tables/counter-codex.js +12 -0
- package/esm/keri/npm/src/cesr/src/tables/counter-groups.js +52 -0
- package/esm/keri/npm/src/cesr/src/tables/counter-version-registry.js +201 -0
- package/esm/keri/npm/src/cesr/src/tables/counter.tables.generated.js +174 -0
- package/esm/keri/npm/src/cesr/src/tables/hard-code-tables.js +39 -0
- package/esm/keri/npm/src/cesr/src/tables/indexer.codex.generated.js +64 -0
- package/esm/keri/npm/src/cesr/src/tables/indexer.tables.generated.js +64 -0
- package/esm/keri/npm/src/cesr/src/tables/matter.codex.generated.js +399 -0
- package/esm/keri/npm/src/cesr/src/tables/matter.tables.generated.js +337 -0
- package/esm/keri/npm/src/cesr/src/tables/table-types.js +1 -0
- package/esm/keri/npm/src/cesr/src/tables/trait.codex.generated.js +10 -0
- package/esm/keri/npm/src/cesr/src/tables/versions.js +16 -0
- package/esm/keri/{src/app → npm/src/cesr/src}/version.js +2 -2
- package/esm/keri/npm/src/keri/src/app/cli/aid.js +27 -0
- package/esm/keri/{src → npm/src/keri/src}/app/cli/challenge.js +13 -24
- package/esm/keri/npm/src/keri/src/app/cli/common/context.js +67 -0
- package/esm/keri/{src → npm/src/keri/src}/app/cli/common/parsing.js +14 -0
- package/esm/keri/npm/src/keri/src/app/cli/common/rendering.js +17 -0
- package/esm/keri/npm/src/keri/src/app/cli/common/witness-auth.js +33 -0
- package/esm/keri/npm/src/keri/src/app/cli/delegate.js +292 -0
- package/esm/keri/{src → npm/src/keri/src}/app/cli/did.js +39 -50
- package/esm/keri/{src → npm/src/keri/src}/app/cli/ends.js +17 -24
- package/esm/keri/{src → npm/src/keri/src}/app/cli/exchange.js +8 -14
- package/esm/keri/npm/src/keri/src/app/cli/export.js +47 -0
- package/esm/keri/{src → npm/src/keri/src}/app/cli/incept.js +9 -4
- package/esm/keri/{src → npm/src/keri/src}/app/cli/index.js +4 -0
- package/esm/keri/{src → npm/src/keri/src}/app/cli/init.js +9 -4
- package/esm/keri/npm/src/keri/src/app/cli/interact.js +72 -0
- package/esm/keri/{src → npm/src/keri/src}/app/cli/ipex.js +34 -380
- package/esm/keri/npm/src/keri/src/app/cli/list.js +25 -0
- package/esm/keri/{src → npm/src/keri/src}/app/cli/loc.js +10 -18
- package/esm/keri/npm/src/keri/src/app/cli/multisig.js +472 -0
- package/esm/keri/{src → npm/src/keri/src}/app/cli/notifications.js +21 -35
- package/esm/keri/{src → npm/src/keri/src}/app/cli/oobi.js +30 -47
- package/esm/keri/{src → npm/src/keri/src}/app/cli/query.js +48 -61
- package/esm/keri/npm/src/keri/src/app/cli/rotate.js +171 -0
- package/esm/keri/npm/src/keri/src/app/cli/sign.js +43 -0
- package/esm/keri/npm/src/keri/src/app/cli/vc.js +284 -0
- package/esm/keri/{src → npm/src/keri/src}/app/cli/verifier.js +42 -44
- package/esm/keri/npm/src/keri/src/app/cli/verify.js +65 -0
- package/esm/keri/npm/src/keri/src/app/credential-workflows.js +424 -0
- package/esm/keri/{src → npm/src/keri/src}/app/endpoint-roleing.js +2 -25
- package/esm/keri/npm/src/keri/src/app/group-members.js +37 -0
- package/esm/keri/npm/src/keri/src/app/ipex-grouping.js +318 -0
- package/esm/keri/npm/src/keri/src/app/multisig-workflows.js +531 -0
- package/esm/keri/npm/src/keri/src/app/protocol-host-policy.js +1 -0
- package/esm/keri/npm/src/keri/src/app/version.js +15 -0
- package/esm/keri/npm/src/keri/src/core/cues.js +1 -0
- package/esm/keri/npm/src/keri/src/core/index.js +23 -0
- package/esm/keri/{src → npm/src/keri/src}/did/webs/artifacts.js +21 -3
- package/package.json +9 -9
- package/types/cesr/src/version.d.ts +2 -2
- package/types/keri/src/app/cli/aid.d.ts.map +1 -1
- package/types/keri/src/app/cli/challenge.d.ts.map +1 -1
- package/types/keri/src/app/cli/common/context.d.ts +60 -0
- package/types/keri/src/app/cli/common/context.d.ts.map +1 -0
- package/types/keri/src/app/cli/common/parsing.d.ts +4 -0
- package/types/keri/src/app/cli/common/parsing.d.ts.map +1 -1
- package/types/keri/src/app/cli/common/rendering.d.ts +12 -0
- package/types/keri/src/app/cli/common/rendering.d.ts.map +1 -0
- package/types/keri/src/app/cli/common/witness-auth.d.ts +11 -0
- package/types/keri/src/app/cli/common/witness-auth.d.ts.map +1 -0
- package/types/keri/src/app/cli/delegate.d.ts +22 -0
- package/types/keri/src/app/cli/delegate.d.ts.map +1 -1
- package/types/keri/src/app/cli/did.d.ts.map +1 -1
- package/types/keri/src/app/cli/ends.d.ts.map +1 -1
- package/types/keri/src/app/cli/exchange.d.ts.map +1 -1
- package/types/keri/src/app/cli/export.d.ts.map +1 -1
- package/types/keri/src/app/cli/incept.d.ts.map +1 -1
- package/types/keri/src/app/cli/index.d.ts +4 -0
- package/types/keri/src/app/cli/index.d.ts.map +1 -1
- package/types/keri/src/app/cli/init.d.ts.map +1 -1
- package/types/keri/src/app/cli/interact.d.ts.map +1 -1
- package/types/keri/src/app/cli/ipex.d.ts.map +1 -1
- package/types/keri/src/app/cli/list.d.ts.map +1 -1
- package/types/keri/src/app/cli/loc.d.ts.map +1 -1
- package/types/keri/src/app/cli/multisig.d.ts.map +1 -1
- package/types/keri/src/app/cli/notifications.d.ts.map +1 -1
- package/types/keri/src/app/cli/oobi.d.ts.map +1 -1
- package/types/keri/src/app/cli/query.d.ts.map +1 -1
- package/types/keri/src/app/cli/rotate.d.ts.map +1 -1
- package/types/keri/src/app/cli/sign.d.ts +2 -2
- package/types/keri/src/app/cli/sign.d.ts.map +1 -1
- package/types/keri/src/app/cli/vc.d.ts.map +1 -1
- package/types/keri/src/app/cli/verifier.d.ts.map +1 -1
- package/types/keri/src/app/cli/verify.d.ts.map +1 -1
- package/types/keri/src/app/credential-workflows.d.ts +118 -0
- package/types/keri/src/app/credential-workflows.d.ts.map +1 -0
- package/types/keri/src/app/endpoint-roleing.d.ts +1 -6
- package/types/keri/src/app/endpoint-roleing.d.ts.map +1 -1
- package/types/keri/src/app/group-members.d.ts +12 -0
- package/types/keri/src/app/group-members.d.ts.map +1 -0
- package/types/keri/src/app/ipex-grouping.d.ts +51 -0
- package/types/keri/src/app/ipex-grouping.d.ts.map +1 -0
- package/types/keri/src/app/multisig-workflows.d.ts +59 -0
- package/types/keri/src/app/multisig-workflows.d.ts.map +1 -0
- package/types/keri/src/app/version.d.ts +2 -2
- package/types/keri/src/app/version.d.ts.map +1 -1
- package/types/keri/src/core/index.d.ts +24 -0
- package/types/keri/src/core/index.d.ts.map +1 -0
- package/types/keri/src/did/webs/artifacts.d.ts.map +1 -1
- package/esm/keri/src/app/cli/aid.js +0 -39
- package/esm/keri/src/app/cli/delegate.js +0 -356
- package/esm/keri/src/app/cli/export.js +0 -67
- package/esm/keri/src/app/cli/interact.js +0 -116
- package/esm/keri/src/app/cli/list.js +0 -33
- package/esm/keri/src/app/cli/multisig.js +0 -1089
- package/esm/keri/src/app/cli/rotate.js +0 -221
- package/esm/keri/src/app/cli/sign.js +0 -67
- package/esm/keri/src/app/cli/vc.js +0 -696
- package/esm/keri/src/app/cli/verify.js +0 -83
- /package/esm/{_dnt.polyfills.js → keri/npm/src/_dnt.polyfills.js} +0 -0
- /package/esm/{_dnt.shims.js → keri/npm/src/_dnt.shims.js} +0 -0
- /package/esm/keri/{src/app/protocol-host-policy.js → npm/src/cesr/src/annotate/types.js} +0 -0
- /package/esm/keri/{src/core/cues.js → npm/src/cesr/src/core/types.js} +0 -0
- /package/esm/{deps → keri/npm/src/deps}/jsr.io/@std/internal/1.0.14/_os.js +0 -0
- /package/esm/{deps → keri/npm/src/deps}/jsr.io/@std/internal/1.0.14/os.js +0 -0
- /package/esm/{deps → keri/npm/src/deps}/jsr.io/@std/path/1.1.5/_common/assert_path.js +0 -0
- /package/esm/{deps → keri/npm/src/deps}/jsr.io/@std/path/1.1.5/_common/basename.js +0 -0
- /package/esm/{deps → keri/npm/src/deps}/jsr.io/@std/path/1.1.5/_common/common.js +0 -0
- /package/esm/{deps → keri/npm/src/deps}/jsr.io/@std/path/1.1.5/_common/constants.js +0 -0
- /package/esm/{deps → keri/npm/src/deps}/jsr.io/@std/path/1.1.5/_common/dirname.js +0 -0
- /package/esm/{deps → keri/npm/src/deps}/jsr.io/@std/path/1.1.5/_common/env.js +0 -0
- /package/esm/{deps → keri/npm/src/deps}/jsr.io/@std/path/1.1.5/_common/format.js +0 -0
- /package/esm/{deps → keri/npm/src/deps}/jsr.io/@std/path/1.1.5/_common/from_file_url.js +0 -0
- /package/esm/{deps → keri/npm/src/deps}/jsr.io/@std/path/1.1.5/_common/glob_to_reg_exp.js +0 -0
- /package/esm/{deps → keri/npm/src/deps}/jsr.io/@std/path/1.1.5/_common/normalize.js +0 -0
- /package/esm/{deps → keri/npm/src/deps}/jsr.io/@std/path/1.1.5/_common/normalize_string.js +0 -0
- /package/esm/{deps → keri/npm/src/deps}/jsr.io/@std/path/1.1.5/_common/relative.js +0 -0
- /package/esm/{deps → keri/npm/src/deps}/jsr.io/@std/path/1.1.5/_common/strip_trailing_separators.js +0 -0
- /package/esm/{deps → keri/npm/src/deps}/jsr.io/@std/path/1.1.5/_common/to_file_url.js +0 -0
- /package/esm/{deps → keri/npm/src/deps}/jsr.io/@std/path/1.1.5/basename.js +0 -0
- /package/esm/{deps → keri/npm/src/deps}/jsr.io/@std/path/1.1.5/common.js +0 -0
- /package/esm/{deps → keri/npm/src/deps}/jsr.io/@std/path/1.1.5/constants.js +0 -0
- /package/esm/{deps → keri/npm/src/deps}/jsr.io/@std/path/1.1.5/dirname.js +0 -0
- /package/esm/{deps → keri/npm/src/deps}/jsr.io/@std/path/1.1.5/extname.js +0 -0
- /package/esm/{deps → keri/npm/src/deps}/jsr.io/@std/path/1.1.5/format.js +0 -0
- /package/esm/{deps → keri/npm/src/deps}/jsr.io/@std/path/1.1.5/from_file_url.js +0 -0
- /package/esm/{deps → keri/npm/src/deps}/jsr.io/@std/path/1.1.5/glob_to_regexp.js +0 -0
- /package/esm/{deps → keri/npm/src/deps}/jsr.io/@std/path/1.1.5/is_absolute.js +0 -0
- /package/esm/{deps → keri/npm/src/deps}/jsr.io/@std/path/1.1.5/is_glob.js +0 -0
- /package/esm/{deps → keri/npm/src/deps}/jsr.io/@std/path/1.1.5/join.js +0 -0
- /package/esm/{deps → keri/npm/src/deps}/jsr.io/@std/path/1.1.5/join_globs.js +0 -0
- /package/esm/{deps → keri/npm/src/deps}/jsr.io/@std/path/1.1.5/mod.js +0 -0
- /package/esm/{deps → keri/npm/src/deps}/jsr.io/@std/path/1.1.5/normalize.js +0 -0
- /package/esm/{deps → keri/npm/src/deps}/jsr.io/@std/path/1.1.5/normalize_glob.js +0 -0
- /package/esm/{deps → keri/npm/src/deps}/jsr.io/@std/path/1.1.5/parse.js +0 -0
- /package/esm/{deps → keri/npm/src/deps}/jsr.io/@std/path/1.1.5/posix/_util.js +0 -0
- /package/esm/{deps → keri/npm/src/deps}/jsr.io/@std/path/1.1.5/posix/basename.js +0 -0
- /package/esm/{deps → keri/npm/src/deps}/jsr.io/@std/path/1.1.5/posix/constants.js +0 -0
- /package/esm/{deps → keri/npm/src/deps}/jsr.io/@std/path/1.1.5/posix/dirname.js +0 -0
- /package/esm/{deps → keri/npm/src/deps}/jsr.io/@std/path/1.1.5/posix/extname.js +0 -0
- /package/esm/{deps → keri/npm/src/deps}/jsr.io/@std/path/1.1.5/posix/format.js +0 -0
- /package/esm/{deps → keri/npm/src/deps}/jsr.io/@std/path/1.1.5/posix/from_file_url.js +0 -0
- /package/esm/{deps → keri/npm/src/deps}/jsr.io/@std/path/1.1.5/posix/glob_to_regexp.js +0 -0
- /package/esm/{deps → keri/npm/src/deps}/jsr.io/@std/path/1.1.5/posix/is_absolute.js +0 -0
- /package/esm/{deps → keri/npm/src/deps}/jsr.io/@std/path/1.1.5/posix/join.js +0 -0
- /package/esm/{deps → keri/npm/src/deps}/jsr.io/@std/path/1.1.5/posix/join_globs.js +0 -0
- /package/esm/{deps → keri/npm/src/deps}/jsr.io/@std/path/1.1.5/posix/normalize.js +0 -0
- /package/esm/{deps → keri/npm/src/deps}/jsr.io/@std/path/1.1.5/posix/normalize_glob.js +0 -0
- /package/esm/{deps → keri/npm/src/deps}/jsr.io/@std/path/1.1.5/posix/parse.js +0 -0
- /package/esm/{deps → keri/npm/src/deps}/jsr.io/@std/path/1.1.5/posix/relative.js +0 -0
- /package/esm/{deps → keri/npm/src/deps}/jsr.io/@std/path/1.1.5/posix/resolve.js +0 -0
- /package/esm/{deps → keri/npm/src/deps}/jsr.io/@std/path/1.1.5/posix/to_file_url.js +0 -0
- /package/esm/{deps → keri/npm/src/deps}/jsr.io/@std/path/1.1.5/posix/to_namespaced_path.js +0 -0
- /package/esm/{deps → keri/npm/src/deps}/jsr.io/@std/path/1.1.5/relative.js +0 -0
- /package/esm/{deps → keri/npm/src/deps}/jsr.io/@std/path/1.1.5/resolve.js +0 -0
- /package/esm/{deps → keri/npm/src/deps}/jsr.io/@std/path/1.1.5/to_file_url.js +0 -0
- /package/esm/{deps → keri/npm/src/deps}/jsr.io/@std/path/1.1.5/to_namespaced_path.js +0 -0
- /package/esm/{deps → keri/npm/src/deps}/jsr.io/@std/path/1.1.5/types.js +0 -0
- /package/esm/{deps → keri/npm/src/deps}/jsr.io/@std/path/1.1.5/windows/_util.js +0 -0
- /package/esm/{deps → keri/npm/src/deps}/jsr.io/@std/path/1.1.5/windows/basename.js +0 -0
- /package/esm/{deps → keri/npm/src/deps}/jsr.io/@std/path/1.1.5/windows/constants.js +0 -0
- /package/esm/{deps → keri/npm/src/deps}/jsr.io/@std/path/1.1.5/windows/dirname.js +0 -0
- /package/esm/{deps → keri/npm/src/deps}/jsr.io/@std/path/1.1.5/windows/extname.js +0 -0
- /package/esm/{deps → keri/npm/src/deps}/jsr.io/@std/path/1.1.5/windows/format.js +0 -0
- /package/esm/{deps → keri/npm/src/deps}/jsr.io/@std/path/1.1.5/windows/from_file_url.js +0 -0
- /package/esm/{deps → keri/npm/src/deps}/jsr.io/@std/path/1.1.5/windows/glob_to_regexp.js +0 -0
- /package/esm/{deps → keri/npm/src/deps}/jsr.io/@std/path/1.1.5/windows/is_absolute.js +0 -0
- /package/esm/{deps → keri/npm/src/deps}/jsr.io/@std/path/1.1.5/windows/join.js +0 -0
- /package/esm/{deps → keri/npm/src/deps}/jsr.io/@std/path/1.1.5/windows/join_globs.js +0 -0
- /package/esm/{deps → keri/npm/src/deps}/jsr.io/@std/path/1.1.5/windows/normalize.js +0 -0
- /package/esm/{deps → keri/npm/src/deps}/jsr.io/@std/path/1.1.5/windows/normalize_glob.js +0 -0
- /package/esm/{deps → keri/npm/src/deps}/jsr.io/@std/path/1.1.5/windows/parse.js +0 -0
- /package/esm/{deps → keri/npm/src/deps}/jsr.io/@std/path/1.1.5/windows/relative.js +0 -0
- /package/esm/{deps → keri/npm/src/deps}/jsr.io/@std/path/1.1.5/windows/resolve.js +0 -0
- /package/esm/{deps → keri/npm/src/deps}/jsr.io/@std/path/1.1.5/windows/to_file_url.js +0 -0
- /package/esm/{deps → keri/npm/src/deps}/jsr.io/@std/path/1.1.5/windows/to_namespaced_path.js +0 -0
- /package/esm/keri/{src → npm/src/keri/src}/acdc/index.js +0 -0
- /package/esm/keri/{src → npm/src/keri/src}/acdc/messaging.js +0 -0
- /package/esm/keri/{src → npm/src/keri/src}/app/agent-runtime.js +0 -0
- /package/esm/keri/{src → npm/src/keri/src}/app/authenticating.js +0 -0
- /package/esm/keri/{src → npm/src/keri/src}/app/cesr-http.js +0 -0
- /package/esm/keri/{src → npm/src/keri/src}/app/challenging.js +0 -0
- /package/esm/keri/{src → npm/src/keri/src}/app/cli/annotate-color.js +0 -0
- /package/esm/keri/{src → npm/src/keri/src}/app/cli/annotate.js +0 -0
- /package/esm/keri/{src → npm/src/keri/src}/app/cli/benchmark.js +0 -0
- /package/esm/keri/{src → npm/src/keri/src}/app/cli/common/displaying.js +0 -0
- /package/esm/keri/{src → npm/src/keri/src}/app/cli/common/existing.js +0 -0
- /package/esm/keri/{src → npm/src/keri/src}/app/cli/db-dump.js +0 -0
- /package/esm/keri/{src → npm/src/keri/src}/app/cli/saidify.js +0 -0
- /package/esm/keri/{src → npm/src/keri/src}/app/configing.js +0 -0
- /package/esm/keri/{src → npm/src/keri/src}/app/cue-runtime.js +0 -0
- /package/esm/keri/{src → npm/src/keri/src}/app/delegating.js +0 -0
- /package/esm/keri/{src → npm/src/keri/src}/app/exchanging.js +0 -0
- /package/esm/keri/{src → npm/src/keri/src}/app/forwarding.js +0 -0
- /package/esm/keri/{src → npm/src/keri/src}/app/grouping.js +0 -0
- /package/esm/keri/{src → npm/src/keri/src}/app/habbing.js +0 -0
- /package/esm/keri/{src → npm/src/keri/src}/app/httping.js +0 -0
- /package/esm/keri/{src → npm/src/keri/src}/app/ipex-credentialing.js +0 -0
- /package/esm/keri/{src → npm/src/keri/src}/app/ipexing.js +0 -0
- /package/esm/keri/{src → npm/src/keri/src}/app/keeping.js +0 -0
- /package/esm/keri/{src → npm/src/keri/src}/app/mailbox-director.js +0 -0
- /package/esm/keri/{src → npm/src/keri/src}/app/mailbox-sse.js +0 -0
- /package/esm/keri/{src → npm/src/keri/src}/app/mailboxing.js +0 -0
- /package/esm/keri/{src → npm/src/keri/src}/app/notifying.js +0 -0
- /package/esm/keri/{src → npm/src/keri/src}/app/oobiery.js +0 -0
- /package/esm/keri/{src → npm/src/keri/src}/app/organizing.js +0 -0
- /package/esm/keri/{src → npm/src/keri/src}/app/parsering.js +0 -0
- /package/esm/keri/{src → npm/src/keri/src}/app/query-transport.js +0 -0
- /package/esm/keri/{src → npm/src/keri/src}/app/querying.js +0 -0
- /package/esm/keri/{src → npm/src/keri/src}/app/reactor.js +0 -0
- /package/esm/keri/{src → npm/src/keri/src}/app/respondant.js +0 -0
- /package/esm/keri/{src → npm/src/keri/src}/app/runtime-services.js +0 -0
- /package/esm/keri/{src → npm/src/keri/src}/app/runtime-turn.js +0 -0
- /package/esm/keri/{src → npm/src/keri/src}/app/schema-resolving.js +0 -0
- /package/esm/keri/{src → npm/src/keri/src}/app/signaling.js +0 -0
- /package/esm/keri/{src → npm/src/keri/src}/app/verifier-agent.js +0 -0
- /package/esm/keri/{src → npm/src/keri/src}/app/verifying.js +0 -0
- /package/esm/keri/{src → npm/src/keri/src}/app/witnessing.js +0 -0
- /package/esm/keri/{src → npm/src/keri/src}/core/attachment-countering.js +0 -0
- /package/esm/keri/{src → npm/src/keri/src}/core/bytes.js +0 -0
- /package/esm/keri/{src → npm/src/keri/src}/core/deck.js +0 -0
- /package/esm/keri/{src → npm/src/keri/src}/core/dispatch.js +0 -0
- /package/esm/keri/{src → npm/src/keri/src}/core/errors.js +0 -0
- /package/esm/keri/{src → npm/src/keri/src}/core/eventing.js +0 -0
- /package/esm/keri/{src → npm/src/keri/src}/core/kever-decisions.js +0 -0
- /package/esm/keri/{src → npm/src/keri/src}/core/kever.js +0 -0
- /package/esm/keri/{src → npm/src/keri/src}/core/logger.js +0 -0
- /package/esm/keri/{src → npm/src/keri/src}/core/mailbox-topics.js +0 -0
- /package/esm/keri/{src → npm/src/keri/src}/core/protocol-eventing.js +0 -0
- /package/esm/keri/{src → npm/src/keri/src}/core/protocol-exchanging.js +0 -0
- /package/esm/keri/{src → npm/src/keri/src}/core/protocol-serialization.js +0 -0
- /package/esm/keri/{src → npm/src/keri/src}/core/protocol-vdr-eventing.js +0 -0
- /package/esm/keri/{src → npm/src/keri/src}/core/records.js +0 -0
- /package/esm/keri/{src → npm/src/keri/src}/core/roles.js +0 -0
- /package/esm/keri/{src → npm/src/keri/src}/core/routing.js +0 -0
- /package/esm/keri/{src → npm/src/keri/src}/core/schemes.js +0 -0
- /package/esm/keri/{src → npm/src/keri/src}/core/scheming.js +0 -0
- /package/esm/keri/{src → npm/src/keri/src}/core/witnesses.js +0 -0
- /package/esm/keri/{src → npm/src/keri/src}/db/basing.js +0 -0
- /package/esm/keri/{src → npm/src/keri/src}/db/core/keys.js +0 -0
- /package/esm/keri/{src → npm/src/keri/src}/db/core/lmdber.js +0 -0
- /package/esm/keri/{src → npm/src/keri/src}/db/core/path-manager.js +0 -0
- /package/esm/keri/{src → npm/src/keri/src}/db/escrowing.js +0 -0
- /package/esm/keri/{src → npm/src/keri/src}/db/index.js +0 -0
- /package/esm/keri/{src → npm/src/keri/src}/db/keeping.js +0 -0
- /package/esm/keri/{src → npm/src/keri/src}/db/koming.js +0 -0
- /package/esm/keri/{src → npm/src/keri/src}/db/mailboxing.js +0 -0
- /package/esm/keri/{src → npm/src/keri/src}/db/noting.js +0 -0
- /package/esm/keri/{src → npm/src/keri/src}/db/outboxing.js +0 -0
- /package/esm/keri/{src → npm/src/keri/src}/db/reger.js +0 -0
- /package/esm/keri/{src → npm/src/keri/src}/db/subing.js +0 -0
- /package/esm/keri/{src → npm/src/keri/src}/db/verifier-cueing.js +0 -0
- /package/esm/keri/{src → npm/src/keri/src}/did/index.js +0 -0
- /package/esm/keri/{src → npm/src/keri/src}/did/keri/resolving.js +0 -0
- /package/esm/keri/{src → npm/src/keri/src}/did/webs/designated-aliases-public-schema.js +0 -0
- /package/esm/keri/{src → npm/src/keri/src}/did/webs/designated-aliases.js +0 -0
- /package/esm/keri/{src → npm/src/keri/src}/did/webs/dids.js +0 -0
- /package/esm/keri/{src → npm/src/keri/src}/did/webs/documenting.js +0 -0
- /package/esm/keri/{src → npm/src/keri/src}/did/webs/resolving.js +0 -0
- /package/esm/keri/{src → npm/src/keri/src}/library/index.js +0 -0
- /package/esm/keri/{src → npm/src/keri/src}/npm/cli.js +0 -0
- /package/esm/keri/{src → npm/src/keri/src}/npm/db.js +0 -0
- /package/esm/keri/{src → npm/src/keri/src}/npm/index.js +0 -0
- /package/esm/keri/{src → npm/src/keri/src}/npm/runtime.js +0 -0
- /package/esm/keri/{src → npm/src/keri/src}/runtime/index.js +0 -0
- /package/esm/keri/{src → npm/src/keri/src}/time/mod.js +0 -0
- /package/esm/keri/{src → npm/src/keri/src}/vdr/credentialing.js +0 -0
- /package/esm/keri/{src → npm/src/keri/src}/vdr/eventing.js +0 -0
package/esm/cesr/mod.js
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
/** cesr-ts npm package root entrypoint. */
|
|
2
|
-
export * from "./src/index.
|
|
3
|
-
export * from "./src/version.
|
|
2
|
+
export * from "./src/index.ts";
|
|
3
|
+
export * from "./src/version.ts";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { action } from "effection";
|
|
2
|
-
import { toAsyncFrames } from "./async-iterable.
|
|
1
|
+
import { action } from "npm:effection@^3.6.0";
|
|
2
|
+
import { toAsyncFrames } from "./async-iterable.ts";
|
|
3
3
|
/**
|
|
4
4
|
* Bridge the async-iterable parser adapter into an Effection operation.
|
|
5
5
|
*
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { b } from "../core/bytes.
|
|
2
|
-
import { parseBytes } from "../core/parser-engine.
|
|
3
|
-
import { renderAnnotatedFrames, renderWrapperAnnotatedStream } from "./render.
|
|
1
|
+
import { b } from "../core/bytes.ts";
|
|
2
|
+
import { parseBytes } from "../core/parser-engine.ts";
|
|
3
|
+
import { renderAnnotatedFrames, renderWrapperAnnotatedStream } from "./render.ts";
|
|
4
4
|
const DEFAULT_OPTIONS = Object.freeze({
|
|
5
5
|
commentMode: "inline",
|
|
6
6
|
indent: 2,
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { resolveCounterCodeNameTable } from "../tables/counter-version-registry.
|
|
2
|
-
import { COUNTER_CODE_NAMES_V1, COUNTER_CODE_NAMES_V2 } from "../tables/counter.tables.generated.
|
|
3
|
-
import { MATTER_CODE_NAMES } from "../tables/matter.tables.generated.
|
|
1
|
+
import { resolveCounterCodeNameTable } from "../tables/counter-version-registry.ts";
|
|
2
|
+
import { COUNTER_CODE_NAMES_V1, COUNTER_CODE_NAMES_V2 } from "../tables/counter.tables.generated.ts";
|
|
3
|
+
import { MATTER_CODE_NAMES } from "../tables/matter.tables.generated.ts";
|
|
4
4
|
const NATIVE_FIELD_LABELS = Object.freeze({
|
|
5
5
|
v: "version string",
|
|
6
6
|
t: "ilk",
|
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
import { b64ToInt, intToB64 } from "../core/bytes.
|
|
2
|
-
import { DeserializeError, GroupSizeError, ShortageError, UnknownCodeError } from "../core/errors.
|
|
3
|
-
import { parseBytes } from "../core/parser-engine.
|
|
4
|
-
import { sniff } from "../parser/cold-start.
|
|
5
|
-
import { parseAttachmentDispatchCompat } from "../parser/group-dispatch.
|
|
6
|
-
import { Counter, parseCounter } from "../primitives/counter.
|
|
7
|
-
import { Indexer } from "../primitives/indexer.
|
|
8
|
-
import { Matter, parseMatter } from "../primitives/matter.
|
|
9
|
-
import { isCounterGroupLike, isPrimitiveTuple } from "../primitives/primitive.
|
|
10
|
-
import { UnknownPrimitive } from "../primitives/unknown.
|
|
11
|
-
import { counterCodeName, counterCodeNameForVersion, matterCodeName, nativeLabelName } from "./comments.
|
|
1
|
+
import { b64ToInt, intToB64 } from "../core/bytes.ts";
|
|
2
|
+
import { DeserializeError, GroupSizeError, ShortageError, UnknownCodeError } from "../core/errors.ts";
|
|
3
|
+
import { parseBytes } from "../core/parser-engine.ts";
|
|
4
|
+
import { sniff } from "../parser/cold-start.ts";
|
|
5
|
+
import { parseAttachmentDispatchCompat } from "../parser/group-dispatch.ts";
|
|
6
|
+
import { Counter, parseCounter } from "../primitives/counter.ts";
|
|
7
|
+
import { Indexer } from "../primitives/indexer.ts";
|
|
8
|
+
import { Matter, parseMatter } from "../primitives/matter.ts";
|
|
9
|
+
import { isCounterGroupLike, isPrimitiveTuple } from "../primitives/primitive.ts";
|
|
10
|
+
import { UnknownPrimitive } from "../primitives/unknown.ts";
|
|
11
|
+
import { counterCodeName, counterCodeNameForVersion, matterCodeName, nativeLabelName } from "./comments.ts";
|
|
12
12
|
const TEXT_DECODER = new TextDecoder();
|
|
13
13
|
const OPAQUE_TOKEN_COMMENT = "opaque token";
|
|
14
14
|
const OPAQUE_WRAPPER_PAYLOAD_COMMENT = "opaque wrapper payload";
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { parseAttachmentGroup } from "../parser/attachment-parser.
|
|
2
|
-
import { sniff } from "../parser/cold-start.
|
|
3
|
-
import { ColdStartError, ShortageError } from "./errors.
|
|
4
|
-
import { isAttachmentDomain } from "./parser-constants.
|
|
1
|
+
import { parseAttachmentGroup } from "../parser/attachment-parser.ts";
|
|
2
|
+
import { sniff } from "../parser/cold-start.ts";
|
|
3
|
+
import { ColdStartError, ShortageError } from "./errors.ts";
|
|
4
|
+
import { isAttachmentDomain } from "./parser-constants.ts";
|
|
5
5
|
/**
|
|
6
6
|
* Parses and appends attachment groups for both:
|
|
7
7
|
* - normal trailing-attachment collection after frame start parse
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { CtrDexV2 } from "../tables/counter-codex.
|
|
1
|
+
import { CtrDexV2 } from "../tables/counter-codex.ts";
|
|
2
2
|
/** Default parser version context when no explicit selector is present. */
|
|
3
3
|
export const DEFAULT_VERSION = { major: 2, minor: 0 };
|
|
4
4
|
/** Native map-body counter codes that permit interleaved label parsing. */
|
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import { createAttachmentVersionFallbackPolicy, } from "../parser/group-dispatch.
|
|
2
|
-
import { ParserError, ShortageError } from "./errors.
|
|
3
|
-
import { AttachmentCollector } from "./parser-attachment-collector.
|
|
4
|
-
import { DEFAULT_VERSION } from "./parser-constants.
|
|
5
|
-
import { DeferredFrameLifecycle } from "./parser-deferred-frames.
|
|
6
|
-
import { FrameParser } from "./parser-frame-parser.
|
|
7
|
-
import { createFrameBoundaryPolicy } from "./parser-policy.
|
|
8
|
-
import { ParserStreamState } from "./parser-stream-state.
|
|
9
|
-
import { composeRecoveryDiagnosticObserver } from "./recovery-diagnostics.
|
|
1
|
+
import { createAttachmentVersionFallbackPolicy, } from "../parser/group-dispatch.ts";
|
|
2
|
+
import { ParserError, ShortageError } from "./errors.ts";
|
|
3
|
+
import { AttachmentCollector } from "./parser-attachment-collector.ts";
|
|
4
|
+
import { DEFAULT_VERSION } from "./parser-constants.ts";
|
|
5
|
+
import { DeferredFrameLifecycle } from "./parser-deferred-frames.ts";
|
|
6
|
+
import { FrameParser } from "./parser-frame-parser.ts";
|
|
7
|
+
import { createFrameBoundaryPolicy } from "./parser-policy.ts";
|
|
8
|
+
import { ParserStreamState } from "./parser-stream-state.ts";
|
|
9
|
+
import { composeRecoveryDiagnosticObserver } from "./recovery-diagnostics.ts";
|
|
10
10
|
/**
|
|
11
11
|
* Streaming CESR parser for message-domain and CESR-native body-group streams.
|
|
12
12
|
* Handles chunk boundaries, pending frames, and attachment continuation.
|
|
@@ -1,16 +1,16 @@
|
|
|
1
|
-
import { parseAttachmentGroup } from "../parser/attachment-parser.
|
|
2
|
-
import { sniff } from "../parser/cold-start.
|
|
3
|
-
import { parseCounter } from "../primitives/counter.
|
|
4
|
-
import { parseIlker } from "../primitives/ilker.
|
|
5
|
-
import { isLabelerCode, parseLabeler } from "../primitives/labeler.
|
|
6
|
-
import { interpretMapperBodySyntax, parseMapperBodySyntax } from "../primitives/mapper.
|
|
7
|
-
import { parseMatter } from "../primitives/matter.
|
|
8
|
-
import { parseVerser } from "../primitives/verser.
|
|
9
|
-
import { reapSerder } from "../serder/serdery.
|
|
10
|
-
import { Kinds, Protocols } from "../tables/versions.
|
|
11
|
-
import { b64ToInt, intToB64 } from "./bytes.
|
|
12
|
-
import { ColdStartError, DeserializeError, SemanticInterpretationError, ShortageError, SyntaxParseError, UnknownCodeError, } from "./errors.
|
|
13
|
-
import { BODY_WITH_ATTACHMENT_GROUP_NAMES, DEFAULT_VERSION, FRAME_START_GROUP_NAMES, GENERIC_GROUP_NAMES, GENUS_VERSION_CODE, isAttachmentDomain, isFrameBoundaryCounter, MAP_BODY_CODES, NATIVE_BODY_GROUP_NAMES, NON_NATIVE_BODY_GROUP_NAMES, quadletUnit, tokenSize, } from "./parser-constants.
|
|
1
|
+
import { parseAttachmentGroup } from "../parser/attachment-parser.ts";
|
|
2
|
+
import { sniff } from "../parser/cold-start.ts";
|
|
3
|
+
import { parseCounter } from "../primitives/counter.ts";
|
|
4
|
+
import { parseIlker } from "../primitives/ilker.ts";
|
|
5
|
+
import { isLabelerCode, parseLabeler } from "../primitives/labeler.ts";
|
|
6
|
+
import { interpretMapperBodySyntax, parseMapperBodySyntax } from "../primitives/mapper.ts";
|
|
7
|
+
import { parseMatter } from "../primitives/matter.ts";
|
|
8
|
+
import { parseVerser } from "../primitives/verser.ts";
|
|
9
|
+
import { reapSerder } from "../serder/serdery.ts";
|
|
10
|
+
import { Kinds, Protocols } from "../tables/versions.ts";
|
|
11
|
+
import { b64ToInt, intToB64 } from "./bytes.ts";
|
|
12
|
+
import { ColdStartError, DeserializeError, SemanticInterpretationError, ShortageError, SyntaxParseError, UnknownCodeError, } from "./errors.ts";
|
|
13
|
+
import { BODY_WITH_ATTACHMENT_GROUP_NAMES, DEFAULT_VERSION, FRAME_START_GROUP_NAMES, GENERIC_GROUP_NAMES, GENUS_VERSION_CODE, isAttachmentDomain, isFrameBoundaryCounter, MAP_BODY_CODES, NATIVE_BODY_GROUP_NAMES, NON_NATIVE_BODY_GROUP_NAMES, quadletUnit, tokenSize, } from "./parser-constants.ts";
|
|
14
14
|
/**
|
|
15
15
|
* Parses frame starts and bounded frame payload structures.
|
|
16
16
|
*
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { sniff } from "../parser/cold-start.
|
|
2
|
-
import { concatBytes } from "./bytes.
|
|
1
|
+
import { sniff } from "../parser/cold-start.ts";
|
|
2
|
+
import { concatBytes } from "./bytes.ts";
|
|
3
3
|
/**
|
|
4
4
|
* Owns mutable stream-level parser state (buffer, absolute offset, stream version).
|
|
5
5
|
*
|
package/esm/cesr/src/index.js
CHANGED
|
@@ -1,81 +1,81 @@
|
|
|
1
|
-
export * from "./adapters/async-iterable.
|
|
2
|
-
export * from "./adapters/effection.
|
|
3
|
-
export * from "./annotate/annotator.
|
|
4
|
-
export * from "./annotate/comments.
|
|
5
|
-
export * from "./annotate/denot.
|
|
6
|
-
export * from "./annotate/render.
|
|
7
|
-
export * from "./annotate/types.
|
|
8
|
-
export * from "./bench/parser-benchmark.
|
|
9
|
-
export * from "./core/bytes.
|
|
10
|
-
export * from "./core/cbor.
|
|
11
|
-
export * from "./core/errors.
|
|
12
|
-
export * from "./core/parser-engine.
|
|
13
|
-
export * from "./core/parser-policy.
|
|
14
|
-
export * from "./core/recovery-diagnostics.
|
|
15
|
-
export * from "./core/types.
|
|
16
|
-
export * from "./core/vocabulary.
|
|
17
|
-
export * from "./parser/cold-start.
|
|
18
|
-
export * from "./parser/group-dispatch.
|
|
19
|
-
export * from "./primitives/aggor.
|
|
20
|
-
export * from "./primitives/bexter.
|
|
21
|
-
export * from "./primitives/blinder.
|
|
22
|
-
export * from "./primitives/cigar.
|
|
23
|
-
export * from "./primitives/cipher.
|
|
24
|
-
export * from "./primitives/codex.
|
|
25
|
-
export * from "./primitives/compactor.
|
|
26
|
-
export * from "./primitives/counter.
|
|
27
|
-
export * from "./primitives/dater.
|
|
28
|
-
export * from "./primitives/decimer.
|
|
29
|
-
export * from "./primitives/decrypter.
|
|
30
|
-
export * from "./primitives/diger.
|
|
31
|
-
export * from "./primitives/disclosure.
|
|
32
|
-
export * from "./primitives/encrypter.
|
|
33
|
-
export * from "./primitives/hydrate.
|
|
34
|
-
export * from "./primitives/ilker.
|
|
35
|
-
export * from "./primitives/indexer.
|
|
36
|
-
export * from "./primitives/labeler.
|
|
37
|
-
export * from "./primitives/mapper.
|
|
38
|
-
export * from "./primitives/matter.
|
|
39
|
-
export * from "./primitives/mediar.
|
|
40
|
-
export * from "./primitives/noncer.
|
|
41
|
-
export * from "./primitives/number.
|
|
42
|
-
export * from "./primitives/pather.
|
|
43
|
-
export * from "./primitives/prefixer.
|
|
44
|
-
export * from "./primitives/primitive.
|
|
45
|
-
export * from "./primitives/registry.
|
|
46
|
-
export * from "./primitives/saider.
|
|
47
|
-
export * from "./primitives/salter.
|
|
48
|
-
export * from "./primitives/sealer.
|
|
49
|
-
export * from "./primitives/seqner.
|
|
50
|
-
export * from "./primitives/siger.
|
|
51
|
-
export * from "./primitives/signer.
|
|
52
|
-
export * from "./primitives/streamer.
|
|
53
|
-
export * from "./primitives/structing.
|
|
54
|
-
export * from "./primitives/structor.
|
|
55
|
-
export * from "./primitives/tagger.
|
|
56
|
-
export * from "./primitives/texter.
|
|
57
|
-
export * from "./primitives/tholder.
|
|
58
|
-
export * from "./primitives/traitor.
|
|
59
|
-
export * from "./primitives/unknown.
|
|
60
|
-
export * from "./primitives/verfer.
|
|
61
|
-
export * from "./primitives/verser.
|
|
62
|
-
export * from "./router/router-stub.
|
|
63
|
-
export * from "./serder/serder.
|
|
64
|
-
export * from "./serder/serdery.
|
|
65
|
-
export * from "./serder/smell.
|
|
66
|
-
export * from "./tables/codex-utils.
|
|
67
|
-
export * from "./tables/counter-codex.
|
|
68
|
-
export * from "./tables/counter-groups.
|
|
69
|
-
export * from "./tables/counter-version-registry.
|
|
70
|
-
export * from "./tables/indexer.codex.generated.
|
|
71
|
-
export * from "./tables/indexer.tables.generated.
|
|
72
|
-
export * from "./tables/matter.codex.generated.
|
|
73
|
-
export * from "./tables/matter.tables.generated.
|
|
74
|
-
export * from "./tables/table-types.
|
|
75
|
-
export * from "./tables/trait.codex.generated.
|
|
76
|
-
export * from "./tables/versions.
|
|
77
|
-
export { bytesHex } from "./core/bytes.
|
|
78
|
-
export { bytesEqual } from "./core/bytes.
|
|
79
|
-
export { toBytes } from "./core/bytes.
|
|
80
|
-
export { t } from "./core/bytes.
|
|
81
|
-
export { b } from "./core/bytes.
|
|
1
|
+
export * from "./adapters/async-iterable.ts";
|
|
2
|
+
export * from "./adapters/effection.ts";
|
|
3
|
+
export * from "./annotate/annotator.ts";
|
|
4
|
+
export * from "./annotate/comments.ts";
|
|
5
|
+
export * from "./annotate/denot.ts";
|
|
6
|
+
export * from "./annotate/render.ts";
|
|
7
|
+
export * from "./annotate/types.ts";
|
|
8
|
+
export * from "./bench/parser-benchmark.ts";
|
|
9
|
+
export * from "./core/bytes.ts";
|
|
10
|
+
export * from "./core/cbor.ts";
|
|
11
|
+
export * from "./core/errors.ts";
|
|
12
|
+
export * from "./core/parser-engine.ts";
|
|
13
|
+
export * from "./core/parser-policy.ts";
|
|
14
|
+
export * from "./core/recovery-diagnostics.ts";
|
|
15
|
+
export * from "./core/types.ts";
|
|
16
|
+
export * from "./core/vocabulary.ts";
|
|
17
|
+
export * from "./parser/cold-start.ts";
|
|
18
|
+
export * from "./parser/group-dispatch.ts";
|
|
19
|
+
export * from "./primitives/aggor.ts";
|
|
20
|
+
export * from "./primitives/bexter.ts";
|
|
21
|
+
export * from "./primitives/blinder.ts";
|
|
22
|
+
export * from "./primitives/cigar.ts";
|
|
23
|
+
export * from "./primitives/cipher.ts";
|
|
24
|
+
export * from "./primitives/codex.ts";
|
|
25
|
+
export * from "./primitives/compactor.ts";
|
|
26
|
+
export * from "./primitives/counter.ts";
|
|
27
|
+
export * from "./primitives/dater.ts";
|
|
28
|
+
export * from "./primitives/decimer.ts";
|
|
29
|
+
export * from "./primitives/decrypter.ts";
|
|
30
|
+
export * from "./primitives/diger.ts";
|
|
31
|
+
export * from "./primitives/disclosure.ts";
|
|
32
|
+
export * from "./primitives/encrypter.ts";
|
|
33
|
+
export * from "./primitives/hydrate.ts";
|
|
34
|
+
export * from "./primitives/ilker.ts";
|
|
35
|
+
export * from "./primitives/indexer.ts";
|
|
36
|
+
export * from "./primitives/labeler.ts";
|
|
37
|
+
export * from "./primitives/mapper.ts";
|
|
38
|
+
export * from "./primitives/matter.ts";
|
|
39
|
+
export * from "./primitives/mediar.ts";
|
|
40
|
+
export * from "./primitives/noncer.ts";
|
|
41
|
+
export * from "./primitives/number.ts";
|
|
42
|
+
export * from "./primitives/pather.ts";
|
|
43
|
+
export * from "./primitives/prefixer.ts";
|
|
44
|
+
export * from "./primitives/primitive.ts";
|
|
45
|
+
export * from "./primitives/registry.ts";
|
|
46
|
+
export * from "./primitives/saider.ts";
|
|
47
|
+
export * from "./primitives/salter.ts";
|
|
48
|
+
export * from "./primitives/sealer.ts";
|
|
49
|
+
export * from "./primitives/seqner.ts";
|
|
50
|
+
export * from "./primitives/siger.ts";
|
|
51
|
+
export * from "./primitives/signer.ts";
|
|
52
|
+
export * from "./primitives/streamer.ts";
|
|
53
|
+
export * from "./primitives/structing.ts";
|
|
54
|
+
export * from "./primitives/structor.ts";
|
|
55
|
+
export * from "./primitives/tagger.ts";
|
|
56
|
+
export * from "./primitives/texter.ts";
|
|
57
|
+
export * from "./primitives/tholder.ts";
|
|
58
|
+
export * from "./primitives/traitor.ts";
|
|
59
|
+
export * from "./primitives/unknown.ts";
|
|
60
|
+
export * from "./primitives/verfer.ts";
|
|
61
|
+
export * from "./primitives/verser.ts";
|
|
62
|
+
export * from "./router/router-stub.ts";
|
|
63
|
+
export * from "./serder/serder.ts";
|
|
64
|
+
export * from "./serder/serdery.ts";
|
|
65
|
+
export * from "./serder/smell.ts";
|
|
66
|
+
export * from "./tables/codex-utils.ts";
|
|
67
|
+
export * from "./tables/counter-codex.ts";
|
|
68
|
+
export * from "./tables/counter-groups.ts";
|
|
69
|
+
export * from "./tables/counter-version-registry.ts";
|
|
70
|
+
export * from "./tables/indexer.codex.generated.ts";
|
|
71
|
+
export * from "./tables/indexer.tables.generated.ts";
|
|
72
|
+
export * from "./tables/matter.codex.generated.ts";
|
|
73
|
+
export * from "./tables/matter.tables.generated.ts";
|
|
74
|
+
export * from "./tables/table-types.ts";
|
|
75
|
+
export * from "./tables/trait.codex.generated.ts";
|
|
76
|
+
export * from "./tables/versions.ts";
|
|
77
|
+
export { bytesHex } from "./core/bytes.ts";
|
|
78
|
+
export { bytesEqual } from "./core/bytes.ts";
|
|
79
|
+
export { toBytes } from "./core/bytes.ts";
|
|
80
|
+
export { t } from "./core/bytes.ts";
|
|
81
|
+
export { b } from "./core/bytes.ts";
|
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
import { b, b64ToInt, intToB64 } from "../core/bytes.
|
|
2
|
-
import { GroupSizeError, ShortageError, UnknownCodeError } from "../core/errors.
|
|
3
|
-
import { composeRecoveryDiagnosticObserver } from "../core/recovery-diagnostics.
|
|
4
|
-
import { CounterGroup, parseCounter } from "../primitives/counter.
|
|
5
|
-
import { parseIndexer } from "../primitives/indexer.
|
|
6
|
-
import { parseMatter } from "../primitives/matter.
|
|
7
|
-
import { UnknownPrimitive } from "../primitives/unknown.
|
|
8
|
-
import { CtrDexV1, CtrDexV2 } from "../tables/counter-codex.
|
|
9
|
-
import { resolveVersionedRegistryValue } from "../tables/counter-version-registry.
|
|
10
|
-
import { createAttachmentVersionFallbackPolicy, } from "./attachment-fallback-policy.
|
|
11
|
-
export { createAttachmentVersionFallbackPolicy } from "./attachment-fallback-policy.
|
|
1
|
+
import { b, b64ToInt, intToB64 } from "../core/bytes.ts";
|
|
2
|
+
import { GroupSizeError, ShortageError, UnknownCodeError } from "../core/errors.ts";
|
|
3
|
+
import { composeRecoveryDiagnosticObserver } from "../core/recovery-diagnostics.ts";
|
|
4
|
+
import { CounterGroup, parseCounter } from "../primitives/counter.ts";
|
|
5
|
+
import { parseIndexer } from "../primitives/indexer.ts";
|
|
6
|
+
import { parseMatter } from "../primitives/matter.ts";
|
|
7
|
+
import { UnknownPrimitive } from "../primitives/unknown.ts";
|
|
8
|
+
import { CtrDexV1, CtrDexV2 } from "../tables/counter-codex.ts";
|
|
9
|
+
import { resolveVersionedRegistryValue } from "../tables/counter-version-registry.ts";
|
|
10
|
+
import { createAttachmentVersionFallbackPolicy, } from "./attachment-fallback-policy.ts";
|
|
11
|
+
export { createAttachmentVersionFallbackPolicy } from "./attachment-fallback-policy.ts";
|
|
12
12
|
function tupleItem(items) {
|
|
13
13
|
return items;
|
|
14
14
|
}
|
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
import { b, codeB2ToB64 } from "../core/bytes.
|
|
2
|
-
import { DeserializeError, SerializeError, UnknownCodeError } from "../core/errors.
|
|
3
|
-
import { CtrDexV2 } from "../tables/counter-codex.
|
|
4
|
-
import { AGGOR_CODES, AGGOR_LIST_CODES, AGGOR_MAP_CODES } from "../tables/counter-groups.
|
|
5
|
-
import { MATTER_SIZES } from "../tables/matter.tables.generated.
|
|
6
|
-
import { DigDex } from "./codex.
|
|
7
|
-
import { Counter, parseCounter } from "./counter.
|
|
8
|
-
import { Diger } from "./diger.
|
|
9
|
-
import { Mapper, parseMapperBody } from "./mapper.
|
|
10
|
-
import { parseMatter } from "./matter.
|
|
11
|
-
import { parseStructor, Structor } from "./structor.
|
|
1
|
+
import { b, codeB2ToB64 } from "../core/bytes.ts";
|
|
2
|
+
import { DeserializeError, SerializeError, UnknownCodeError } from "../core/errors.ts";
|
|
3
|
+
import { CtrDexV2 } from "../tables/counter-codex.ts";
|
|
4
|
+
import { AGGOR_CODES, AGGOR_LIST_CODES, AGGOR_MAP_CODES } from "../tables/counter-groups.ts";
|
|
5
|
+
import { MATTER_SIZES } from "../tables/matter.tables.generated.ts";
|
|
6
|
+
import { DigDex } from "./codex.ts";
|
|
7
|
+
import { Counter, parseCounter } from "./counter.ts";
|
|
8
|
+
import { Diger } from "./diger.ts";
|
|
9
|
+
import { Mapper, parseMapperBody } from "./mapper.ts";
|
|
10
|
+
import { parseMatter } from "./matter.ts";
|
|
11
|
+
import { parseStructor, Structor } from "./structor.ts";
|
|
12
12
|
/**
|
|
13
13
|
* `Aggor` is the aggregate-list sibling to `Compactor`.
|
|
14
14
|
*
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { decodeB64, encodeB64 } from "../core/bytes.
|
|
2
|
-
import { UnknownCodeError } from "../core/errors.
|
|
3
|
-
import { MATTER_SIZES } from "../tables/matter.tables.generated.
|
|
4
|
-
import { BEXTER_CODES } from "./codex.
|
|
5
|
-
import { Matter, parseMatter } from "./matter.
|
|
1
|
+
import { decodeB64, encodeB64 } from "../core/bytes.ts";
|
|
2
|
+
import { UnknownCodeError } from "../core/errors.ts";
|
|
3
|
+
import { MATTER_SIZES } from "../tables/matter.tables.generated.ts";
|
|
4
|
+
import { BEXTER_CODES } from "./codex.ts";
|
|
5
|
+
import { Matter, parseMatter } from "./matter.ts";
|
|
6
6
|
/** Resolve lead-byte width (`ls`) used by StrB64 code family conversions. */
|
|
7
7
|
function getLeadSize(code) {
|
|
8
8
|
const sizage = MATTER_SIZES.get(code);
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { UnknownCodeError } from "../core/errors.
|
|
2
|
-
import { BLINDER_CODES } from "../tables/counter-groups.
|
|
3
|
-
import { parseStructor, Structor } from "./structor.
|
|
1
|
+
import { UnknownCodeError } from "../core/errors.ts";
|
|
2
|
+
import { BLINDER_CODES } from "../tables/counter-groups.ts";
|
|
3
|
+
import { parseStructor, Structor } from "./structor.ts";
|
|
4
4
|
/** True when counter code belongs to blinded/bound state tuple families. */
|
|
5
5
|
export function isBlinderCode(code) {
|
|
6
6
|
return BLINDER_CODES.has(code);
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { UnknownCodeError } from "../core/errors.
|
|
2
|
-
import { CIGAR_CODES, matterCodexName } from "./codex.
|
|
3
|
-
import { Matter, parseMatter } from "./matter.
|
|
1
|
+
import { UnknownCodeError } from "../core/errors.ts";
|
|
2
|
+
import { CIGAR_CODES, matterCodexName } from "./codex.ts";
|
|
3
|
+
import { Matter, parseMatter } from "./matter.ts";
|
|
4
4
|
/**
|
|
5
5
|
* Non-indexed signature primitive.
|
|
6
6
|
*
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { DeserializeError, UnknownCodeError } from "../core/errors.
|
|
2
|
-
import { normalizeByteLike } from "./byte-like.
|
|
3
|
-
import { CiXDex } from "./codex.
|
|
4
|
-
import { CIPHER_X25519_ALL_CODES, MtrDex } from "./codex.
|
|
5
|
-
import { Decrypter } from "./decrypter.
|
|
6
|
-
import { Matter } from "./matter.
|
|
1
|
+
import { DeserializeError, UnknownCodeError } from "../core/errors.ts";
|
|
2
|
+
import { normalizeByteLike } from "./byte-like.ts";
|
|
3
|
+
import { CiXDex } from "./codex.ts";
|
|
4
|
+
import { CIPHER_X25519_ALL_CODES, MtrDex } from "./codex.ts";
|
|
5
|
+
import { Decrypter } from "./decrypter.ts";
|
|
6
|
+
import { Matter } from "./matter.ts";
|
|
7
7
|
/** Map the KERIpy fixed cipher families to their expected raw sealed-box sizes. */
|
|
8
8
|
function expectedFixedCipherRawSize(code) {
|
|
9
9
|
return Matter.rawSizeForCode(code);
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { codexValues, invertCodex } from "../tables/codex-utils.
|
|
2
|
-
import { IdrDex, IdxBthSigDex, IdxCrtSigDex, IdxSigDex } from "../tables/indexer.codex.generated.
|
|
3
|
-
import { BexDex, CiXAllQB64Dex, CiXDex, CiXFixQB64Dex, CiXVarDex, CiXVarQB2Dex, CiXVarQB64Dex, CiXVarStrmDex, DecDex, DigDex, EscapeDex, LabelDex, MtrDex, NonceDex, NonTransDex, NumDex, PreDex, PreNonDigDex, TagDex, TexDex, } from "../tables/matter.codex.generated.
|
|
4
|
-
import { TraitDex } from "../tables/trait.codex.generated.
|
|
5
|
-
import { Protocols } from "../tables/versions.
|
|
1
|
+
import { codexValues, invertCodex } from "../tables/codex-utils.ts";
|
|
2
|
+
import { IdrDex, IdxBthSigDex, IdxCrtSigDex, IdxSigDex } from "../tables/indexer.codex.generated.ts";
|
|
3
|
+
import { BexDex, CiXAllQB64Dex, CiXDex, CiXFixQB64Dex, CiXVarDex, CiXVarQB2Dex, CiXVarQB64Dex, CiXVarStrmDex, DecDex, DigDex, EscapeDex, LabelDex, MtrDex, NonceDex, NonTransDex, NumDex, PreDex, PreNonDigDex, TagDex, TexDex, } from "../tables/matter.codex.generated.ts";
|
|
4
|
+
import { TraitDex } from "../tables/trait.codex.generated.ts";
|
|
5
|
+
import { Protocols } from "../tables/versions.ts";
|
|
6
6
|
/**
|
|
7
7
|
* Derived readability layer over the generated KERIpy-parity codex objects.
|
|
8
8
|
*
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { DeserializeError, UnknownCodeError } from "../core/errors.
|
|
2
|
-
import { COMPACTOR_CODES } from "../tables/counter-groups.
|
|
3
|
-
import { Mapper, parseMapperBody } from "./mapper.
|
|
1
|
+
import { DeserializeError, UnknownCodeError } from "../core/errors.ts";
|
|
2
|
+
import { COMPACTOR_CODES } from "../tables/counter-groups.ts";
|
|
3
|
+
import { Mapper, parseMapperBody } from "./mapper.ts";
|
|
4
4
|
/**
|
|
5
5
|
* CESR-native compactable map primitive.
|
|
6
6
|
*
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { b, b64ToInt, codeB2ToB64, codeB64ToB2, concatBytes, intToB64, nabSextets, sceil } from "../core/bytes.
|
|
2
|
-
import { DeserializeError, ShortageError, UnknownCodeError } from "../core/errors.
|
|
3
|
-
import { CtrDexV2 } from "../tables/counter-codex.
|
|
4
|
-
import { resolveCounterCodeNameTable, resolveCounterSizeTable } from "../tables/counter-version-registry.
|
|
5
|
-
import { COUNTER_HARDS } from "../tables/counter.tables.generated.
|
|
1
|
+
import { b, b64ToInt, codeB2ToB64, codeB64ToB2, concatBytes, intToB64, nabSextets, sceil } from "../core/bytes.ts";
|
|
2
|
+
import { DeserializeError, ShortageError, UnknownCodeError } from "../core/errors.ts";
|
|
3
|
+
import { CtrDexV2 } from "../tables/counter-codex.ts";
|
|
4
|
+
import { resolveCounterCodeNameTable, resolveCounterSizeTable } from "../tables/counter-version-registry.ts";
|
|
5
|
+
import { COUNTER_HARDS } from "../tables/counter.tables.generated.ts";
|
|
6
6
|
const COUNTER_BARDS = new Map([...COUNTER_HARDS.entries()].map(([code, hs]) => [
|
|
7
7
|
String.fromCharCode(codeB64ToB2(code)[0])
|
|
8
8
|
+ String.fromCharCode(codeB64ToB2(code)[1] ?? 0),
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { UnknownCodeError } from "../core/errors.
|
|
2
|
-
import { MATTER_SIZES } from "../tables/matter.tables.generated.
|
|
3
|
-
import { DATER_CODES } from "./codex.
|
|
4
|
-
import { Matter, parseMatter } from "./matter.
|
|
1
|
+
import { UnknownCodeError } from "../core/errors.ts";
|
|
2
|
+
import { MATTER_SIZES } from "../tables/matter.tables.generated.ts";
|
|
3
|
+
import { DATER_CODES } from "./codex.ts";
|
|
4
|
+
import { Matter, parseMatter } from "./matter.ts";
|
|
5
5
|
/** Project compact CESR datetime encoding to RFC3339/ISO-8601 text form. */
|
|
6
6
|
function toIso8601(dts) {
|
|
7
7
|
return dts.replaceAll("c", ":").replaceAll("d", ".").replaceAll("p", "+");
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { concatBytes, decodeB64, encodeB64 } from "../core/bytes.
|
|
2
|
-
import { UnknownCodeError } from "../core/errors.
|
|
3
|
-
import { MATTER_SIZES } from "../tables/matter.tables.generated.
|
|
4
|
-
import { DECIMAL_CODES } from "./codex.
|
|
5
|
-
import { Matter, parseMatter } from "./matter.
|
|
1
|
+
import { concatBytes, decodeB64, encodeB64 } from "../core/bytes.ts";
|
|
2
|
+
import { UnknownCodeError } from "../core/errors.ts";
|
|
3
|
+
import { MATTER_SIZES } from "../tables/matter.tables.generated.ts";
|
|
4
|
+
import { DECIMAL_CODES } from "./codex.ts";
|
|
5
|
+
import { Matter, parseMatter } from "./matter.ts";
|
|
6
6
|
/** Decode variable-sized decimal payload bytes into decimal-string form. */
|
|
7
7
|
function derawifyDns(raw, code) {
|
|
8
8
|
const sizage = MATTER_SIZES.get(code);
|
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import { DeserializeError, UnknownCodeError } from "../core/errors.
|
|
2
|
-
import { normalizeByteLike } from "./byte-like.
|
|
3
|
-
import { Cipher } from "./cipher.
|
|
4
|
-
import { CIPHER_X25519_ALL_QB64_CODES, CIPHER_X25519_FIXED_QB64_CODES, CIPHER_X25519_QB2_VARIABLE_CODES, CIPHER_X25519_VARIABLE_STREAM_CODES, DECRYPTER_CODES, MtrDex, } from "./codex.
|
|
5
|
-
import { Matter } from "./matter.
|
|
6
|
-
import { Salter } from "./salter.
|
|
7
|
-
import { boxKeyPairFromEd25519Seed, boxPublicKeyFromPrivateKey, openSealedBox } from "./sealed-box.
|
|
8
|
-
import { Signer } from "./signer.
|
|
9
|
-
import { Streamer } from "./streamer.
|
|
1
|
+
import { DeserializeError, UnknownCodeError } from "../core/errors.ts";
|
|
2
|
+
import { normalizeByteLike } from "./byte-like.ts";
|
|
3
|
+
import { Cipher } from "./cipher.ts";
|
|
4
|
+
import { CIPHER_X25519_ALL_QB64_CODES, CIPHER_X25519_FIXED_QB64_CODES, CIPHER_X25519_QB2_VARIABLE_CODES, CIPHER_X25519_VARIABLE_STREAM_CODES, DECRYPTER_CODES, MtrDex, } from "./codex.ts";
|
|
5
|
+
import { Matter } from "./matter.ts";
|
|
6
|
+
import { Salter } from "./salter.ts";
|
|
7
|
+
import { boxKeyPairFromEd25519Seed, boxPublicKeyFromPrivateKey, openSealedBox } from "./sealed-box.ts";
|
|
8
|
+
import { Signer } from "./signer.ts";
|
|
9
|
+
import { Streamer } from "./streamer.ts";
|
|
10
10
|
/** Normalize direct X25519 or derived-Ed25519 constructor forms into `Matter` input. */
|
|
11
11
|
function normalizeMatterInit(init) {
|
|
12
12
|
if (init instanceof Matter) {
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { blake2b, blake2s } from "
|
|
2
|
-
import { blake3 } from "
|
|
3
|
-
import { sha256, sha512 } from "
|
|
4
|
-
import { sha3_256, sha3_512 } from "
|
|
5
|
-
import { UnknownCodeError } from "../core/errors.
|
|
6
|
-
import { DigDex, DIGEST_CODES, matterCodexName } from "./codex.
|
|
7
|
-
import { Matter, parseMatter } from "./matter.
|
|
1
|
+
import { blake2b, blake2s } from "npm:@noble/hashes@1.8.0/blake2";
|
|
2
|
+
import { blake3 } from "npm:@noble/hashes@1.8.0/blake3";
|
|
3
|
+
import { sha256, sha512 } from "npm:@noble/hashes@1.8.0/sha2";
|
|
4
|
+
import { sha3_256, sha3_512 } from "npm:@noble/hashes@1.8.0/sha3";
|
|
5
|
+
import { UnknownCodeError } from "../core/errors.ts";
|
|
6
|
+
import { DigDex, DIGEST_CODES, matterCodexName } from "./codex.ts";
|
|
7
|
+
import { Matter, parseMatter } from "./matter.ts";
|
|
8
8
|
/**
|
|
9
9
|
* Digest primitive family.
|
|
10
10
|
*
|