{"_id":"@buildtovalue/anchor-rfc3161","_rev":"2-219ff606017f158f040f4e533777428e","name":"@buildtovalue/anchor-rfc3161","dist-tags":{"latest":"1.0.2-next.0"},"versions":{"1.0.1":{"name":"@buildtovalue/anchor-rfc3161","version":"1.0.1","keywords":["bpmn","anchor","rfc3161","timestamp","trust"],"license":"Apache-2.0","_id":"@buildtovalue/anchor-rfc3161@1.0.1","maintainers":[{"name":"danzeroum","email":"danzeroum@gmail.com"}],"homepage":"https://github.com/danzeroum/bpmn#readme","bugs":{"url":"https://github.com/danzeroum/bpmn/issues"},"dist":{"shasum":"c7c5e614837631905461b07fa74ee01b8454821c","tarball":"https://registry.npmjs.org/@buildtovalue/anchor-rfc3161/-/anchor-rfc3161-1.0.1.tgz","fileCount":16,"integrity":"sha512-aDhCpC8+4i1cHK2/SzrbcnhSfRO2Rn7vUaZAWbKXLsSfcFqRSWOSm9SlUwG6XkQC/jqIsj8IojHJEu300IdfEQ==","signatures":[{"sig":"MEUCIE1ImQw9/019tfULhiFIH134IXHIohy1MyC/ivN9BLHVAiEAvYejtAQZkm61VKngElVZ98XrVgrwTpXsa9yhZcbVJ3I=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":20143},"main":"./dist/cjs/index.js","type":"module","_from":"file:buildtovalue-anchor-rfc3161-1.0.1.tgz","types":"./dist/esm/index.d.ts","module":"./dist/esm/index.js","engines":{"node":">=20"},"exports":{".":{"types":"./dist/esm/index.d.ts","import":"./dist/esm/index.js","require":"./dist/cjs/index.js"}},"scripts":{"build":"tsc -p tsconfig.build.json && tsc -p tsconfig.cjs.json && node ../../scripts/write-cjs-package.mjs dist/cjs","typecheck":"tsc -p tsconfig.json --noEmit"},"_npmUser":{"name":"danzeroum","email":"danzeroum@gmail.com"},"_resolved":"C:\\Users\\danni\\AppData\\Local\\Temp\\829ef13238dbcb45129629c68a376eab\\buildtovalue-anchor-rfc3161-1.0.1.tgz","_integrity":"sha512-aDhCpC8+4i1cHK2/SzrbcnhSfRO2Rn7vUaZAWbKXLsSfcFqRSWOSm9SlUwG6XkQC/jqIsj8IojHJEu300IdfEQ==","repository":{"url":"git+https://github.com/danzeroum/bpmn.git","type":"git","directory":"packages/anchor-rfc3161"},"_npmVersion":"10.9.3","description":"RFC 3161 timestamp anchor adapter (Handoff 8): anchors the ledger chain head to a TSA timestamp token via a HOST-injected transport (the library never does network). Implements the AnchorAdapter contract from @buildtovalue/identity. Zero runtime dependenc","directories":{},"sideEffects":false,"_nodeVersion":"22.20.0","dependencies":{"@buildtovalue/identity":"1.0.1"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"_npmOperationalInternal":{"tmp":"tmp/anchor-rfc3161_1.0.1_1784345292216_0.8009117626123374","host":"s3://npm-registry-packages-npm-production"}},"1.0.2-next.0":{"name":"@buildtovalue/anchor-rfc3161","version":"1.0.2-next.0","description":"RFC 3161 timestamp anchor adapter (Handoff 8): anchors the ledger chain head to a TSA timestamp token via a HOST-injected transport (the library never does network). Implements the AnchorAdapter contract from @buildtovalue/identity. Zero runtime dependenc","license":"Apache-2.0","type":"module","sideEffects":false,"engines":{"node":">=20"},"main":"./dist/cjs/index.js","module":"./dist/esm/index.js","types":"./dist/esm/index.d.ts","exports":{".":{"types":"./dist/esm/index.d.ts","import":"./dist/esm/index.js","require":"./dist/cjs/index.js"}},"dependencies":{"@buildtovalue/identity":"1.1.0-next.0"},"keywords":["bpmn","anchor","rfc3161","timestamp","trust"],"repository":{"type":"git","url":"git+https://github.com/danzeroum/bpmn.git","directory":"packages/anchor-rfc3161"},"publishConfig":{"access":"public"},"scripts":{"build":"tsc -p tsconfig.build.json && tsc -p tsconfig.cjs.json && node ../../scripts/write-cjs-package.mjs dist/cjs","typecheck":"tsc -p tsconfig.json --noEmit"},"_id":"@buildtovalue/anchor-rfc3161@1.0.2-next.0","bugs":{"url":"https://github.com/danzeroum/bpmn/issues"},"homepage":"https://github.com/danzeroum/bpmn#readme","_integrity":"sha512-F2FVQCAynSKHglUy5epeoOIKDO6rGrDGD1r6xPOAmdncQwg9v18rDA/jKY1DsrcMqSx+rKvHLEcBHj/ipUrDQw==","_resolved":"/tmp/663ee07b318a676909f5bbd641e337e9/buildtovalue-anchor-rfc3161-1.0.2-next.0.tgz","_from":"file:buildtovalue-anchor-rfc3161-1.0.2-next.0.tgz","_nodeVersion":"22.23.1","_npmVersion":"10.9.8","dist":{"integrity":"sha512-F2FVQCAynSKHglUy5epeoOIKDO6rGrDGD1r6xPOAmdncQwg9v18rDA/jKY1DsrcMqSx+rKvHLEcBHj/ipUrDQw==","shasum":"dddc67de2815f2d9c8c2101a4db3adf03a4d4897","tarball":"https://registry.npmjs.org/@buildtovalue/anchor-rfc3161/-/anchor-rfc3161-1.0.2-next.0.tgz","fileCount":16,"unpackedSize":19924,"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEQCICkh1FKD1kRRF9HvLscO0Xu26C7sfqnoXBVSg58ZJiiWAiBzNMbtCZ+dOyrhHBtQQt+Q4olYttH5krx5O/gIZv4V6A=="}]},"_npmUser":{"name":"danzeroum","email":"danzeroum@gmail.com"},"directories":{},"maintainers":[{"name":"danzeroum","email":"danzeroum@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/anchor-rfc3161_1.0.2-next.0_1784725572453_0.46783066744965884"},"_hasShrinkwrap":false}},"time":{"created":"2026-07-18T03:28:12.082Z","modified":"2026-07-22T13:06:12.792Z","1.0.1":"2026-07-18T03:28:12.352Z","1.0.2-next.0":"2026-07-22T13:06:12.601Z"},"bugs":{"url":"https://github.com/danzeroum/bpmn/issues"},"license":"Apache-2.0","homepage":"https://github.com/danzeroum/bpmn#readme","keywords":["bpmn","anchor","rfc3161","timestamp","trust"],"repository":{"type":"git","url":"git+https://github.com/danzeroum/bpmn.git","directory":"packages/anchor-rfc3161"},"description":"RFC 3161 timestamp anchor adapter (Handoff 8): anchors the ledger chain head to a TSA timestamp token via a HOST-injected transport (the library never does network). Implements the AnchorAdapter contract from @buildtovalue/identity. Zero runtime dependenc","maintainers":[{"name":"danzeroum","email":"danzeroum@gmail.com"}],"readme":"# @buildtovalue/anchor-rfc3161\n\nRFC 3161 **timestamp anchor adapter** (Handoff 8): anchors the ledger chain head\nto a TSA timestamp token, implementing the `AnchorAdapter` contract from\n`@buildtovalue/identity`.\n\n## The host owns the TSA transport (no network in the library)\n\nYou inject `timestamp`/`verifyToken`; the library never calls the TSA. This keeps\nthe package network- and dependency-free and lets the host use its own TSA,\ncredentials and validation policy.\n\n```ts\nimport { createRfc3161Anchor } from '@buildtovalue/anchor-rfc3161';\n\nconst anchor = createRfc3161Anchor({\n  async timestamp(digest) {\n    return host.requestTsaToken(digest); // { token, genTime }\n  },\n  async verifyToken(token, digest) {\n    return host.validateTsaToken(token, digest); // boolean\n  },\n});\n\nconst receipt = await anchor.anchor({ hash: head.hash, seq: head.seq });\nawait anchor.verify(receipt, currentHashAtSeq); // 'anchored' | 'mismatch' | 'unavailable'\n```\n\nDerive the UI state from the result via `deriveAnchorState` in\n`@buildtovalue/identity`. Consumes only `@buildtovalue/identity` — pinned by\n`tests/independence.test.ts`. **Zero runtime dependencies.**\n","readmeFilename":"README.md"}