{"_id":"@constellation-network/digital-evidence-sdk","_rev":"6-255e48572d22af5bb6cfc88a1ef4c98d","name":"@constellation-network/digital-evidence-sdk","dist-tags":{"latest":"0.3.2"},"versions":{"0.1.0":{"name":"@constellation-network/digital-evidence-sdk","version":"0.1.0","keywords":["constellation","ded","digital-evidence","fingerprint","notarization","metagraph","secp256k1","rfc8785","cryptographic-proof"],"author":{"name":"Constellation Network"},"license":"Apache-2.0","_id":"@constellation-network/digital-evidence-sdk@0.1.0","maintainers":[{"name":"marcus.girolneto","email":"marcus@constellationnetwork.io"},{"name":"alexbrandes","email":"alex@alexbrandes.io"},{"name":"james-constellation","email":"james@constellationnetwork.io"},{"name":"ffox77","email":"ffox77@yahoo.com"}],"homepage":"https://github.com/Constellation-Labs/digital-evidence-sdk#readme","bugs":{"url":"https://github.com/Constellation-Labs/digital-evidence-sdk/issues"},"dist":{"shasum":"43ff1074e2f329b89aade65fc565ab3711cabe8e","tarball":"https://registry.npmjs.org/@constellation-network/digital-evidence-sdk/-/digital-evidence-sdk-0.1.0.tgz","fileCount":22,"integrity":"sha512-g4zIL7hlR+7mr4bxHV3u32F6tK8ZGNMxK6iVOtK75digsB0fw8ySolBBIkuLKcxqoPwZmWSxWVARuglouwTqSw==","signatures":[{"sig":"MEYCIQCON5kHyKL2pNnAAA+NAm+EELE3HAzN8cWahFS+eYDbMAIhAKlmAQg1Hz/bUOOz+3lkLbH1jCkLXQ0aTzqdv75gYqCv","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/@constellation-network%2fdigital-evidence-sdk@0.1.0","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"unpackedSize":150409},"main":"dist/cjs/core/index.js","types":"dist/types/core/index.d.ts","module":"dist/esm/core/index.js","engines":{"node":">=18.0.0"},"exports":{".":{"types":"./dist/types/core/index.d.ts","import":"./dist/esm/core/index.js","require":"./dist/cjs/core/index.js"},"./network":{"types":"./dist/types/network/index.d.ts","import":"./dist/esm/network/index.js","require":"./dist/cjs/network/index.js"}},"gitHead":"570f4f449853fce24dc9a82a462f2b1361eace75","scripts":{"lint":"eslint src tests","test":"jest","build":"npm run build:bundle && npm run build:types","format":"prettier --write src tests","build:types":"tsc -p tsconfig.types.json","build:bundle":"rollup -c","format:check":"prettier --check src tests","test:coverage":"jest --coverage","prepublishOnly":"npm run build && npm test"},"_npmUser":{"name":"james-constellation","email":"james@constellationnetwork.io"},"repository":{"url":"git+https://github.com/Constellation-Labs/digital-evidence-sdk.git","type":"git","directory":"packages/typescript"},"_npmVersion":"11.11.0","description":"TypeScript SDK for the Digital Evidence Depository (DED) on Constellation Network","directories":{},"_nodeVersion":"20.20.0","dependencies":{"zod":"^3.22.0","@constellation-network/metagraph-sdk":"^0.1.0"},"_hasShrinkwrap":false,"devDependencies":{"jest":"^29.0.0","tslib":"^2.8.1","eslint":"^8.0.0","rollup":"^4.59.0","ts-jest":"^29.0.0","prettier":"^3.0.0","typescript":"^5.0.0","@types/jest":"^29.5.0","@types/node":"^20.0.0","@rollup/plugin-typescript":"^12.3.0","@typescript-eslint/parser":"^7.0.0","@rollup/plugin-node-resolve":"^16.0.3","@typescript-eslint/eslint-plugin":"^7.0.0"},"_npmOperationalInternal":{"tmp":"tmp/digital-evidence-sdk_0.1.0_1772583422772_0.474466952887445","host":"s3://npm-registry-packages-npm-production"}},"0.1.1":{"name":"@constellation-network/digital-evidence-sdk","version":"0.1.1","keywords":["constellation","ded","digital-evidence","fingerprint","notarization","metagraph","secp256k1","rfc8785","cryptographic-proof"],"author":{"name":"Constellation Network"},"license":"Apache-2.0","_id":"@constellation-network/digital-evidence-sdk@0.1.1","maintainers":[{"name":"marcus.girolneto","email":"marcus@constellationnetwork.io"},{"name":"alexbrandes","email":"alex@alexbrandes.io"},{"name":"james-constellation","email":"james@constellationnetwork.io"},{"name":"ffox77","email":"ffox77@yahoo.com"}],"homepage":"https://github.com/Constellation-Labs/digital-evidence-sdk#readme","bugs":{"url":"https://github.com/Constellation-Labs/digital-evidence-sdk/issues"},"dist":{"shasum":"d3b1fac9a49ec8966572b28a56da452bb2bf3672","tarball":"https://registry.npmjs.org/@constellation-network/digital-evidence-sdk/-/digital-evidence-sdk-0.1.1.tgz","fileCount":23,"integrity":"sha512-evxXF/B/Zl+zelZ7vY7gIFIC9aR/y/eK7MaR/vX4Ei5a0W30QGdH3lsfX2gM5sAD+5jHp3wOJoudkK5S+rGRzw==","signatures":[{"sig":"MEQCIDo8vorGDc8zBqudax738lQyDXicGRQNW/lUWTQvEmGRAiA8zb5iZ8QngXUAvCiahoRGZehMwqEUha9Pf+dSp1oh6Q==","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/@constellation-network%2fdigital-evidence-sdk@0.1.1","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"unpackedSize":155127},"main":"dist/cjs/core/index.js","types":"dist/types/core/index.d.ts","module":"dist/esm/core/index.js","engines":{"node":">=18.0.0"},"exports":{".":{"types":"./dist/types/core/index.d.ts","import":"./dist/esm/core/index.js","require":"./dist/cjs/core/index.js"},"./network":{"types":"./dist/types/network/index.d.ts","import":"./dist/esm/network/index.js","require":"./dist/cjs/network/index.js"}},"gitHead":"176b421a4933f007716ec2ece29668a04e55c2d3","scripts":{"lint":"eslint src tests","test":"jest","build":"npm run build:bundle && npm run build:types","format":"prettier --write src tests","build:types":"tsc -p tsconfig.types.json","build:bundle":"rollup -c","format:check":"prettier --check src tests","test:coverage":"jest --coverage","prepublishOnly":"npm run build && npm test"},"_npmUser":{"name":"GitHub Actions","email":"npm-oidc-no-reply@github.com","trustedPublisher":{"id":"github","oidcConfigId":"oidc:17bb4a1e-fb21-4df3-a128-434b8b9dd8b1"}},"repository":{"url":"git+https://github.com/Constellation-Labs/digital-evidence-sdk.git","type":"git","directory":"packages/typescript"},"_npmVersion":"11.11.0","description":"TypeScript SDK for the Digital Evidence Depository (DED) on Constellation Network","directories":{},"_nodeVersion":"20.20.0","dependencies":{"zod":"^3.22.0","@constellation-network/metagraph-sdk":"^0.1.0"},"_hasShrinkwrap":false,"devDependencies":{"jest":"^29.0.0","tslib":"^2.8.1","eslint":"^8.0.0","rollup":"^4.59.0","ts-jest":"^29.0.0","prettier":"^3.0.0","typescript":"^5.0.0","@types/jest":"^29.5.0","@types/node":"^20.0.0","@rollup/plugin-typescript":"^12.3.0","@typescript-eslint/parser":"^7.0.0","@rollup/plugin-node-resolve":"^16.0.3","@typescript-eslint/eslint-plugin":"^7.0.0"},"_npmOperationalInternal":{"tmp":"tmp/digital-evidence-sdk_0.1.1_1772585033696_0.37355128877682175","host":"s3://npm-registry-packages-npm-production"}},"0.2.0":{"name":"@constellation-network/digital-evidence-sdk","version":"0.2.0","keywords":["constellation","ded","digital-evidence","fingerprint","notarization","metagraph","secp256k1","rfc8785","cryptographic-proof"],"author":{"name":"Constellation Network"},"license":"Apache-2.0","_id":"@constellation-network/digital-evidence-sdk@0.2.0","maintainers":[{"name":"marcus.girolneto","email":"marcus@constellationnetwork.io"},{"name":"alexbrandes","email":"alex@alexbrandes.io"},{"name":"james-constellation","email":"james@constellationnetwork.io"},{"name":"ffox77","email":"ffox77@yahoo.com"}],"homepage":"https://github.com/Constellation-Labs/digital-evidence-sdk#readme","bugs":{"url":"https://github.com/Constellation-Labs/digital-evidence-sdk/issues"},"dist":{"shasum":"3ebb3339ff74b3ddbec4540956a860cb3f38a61b","tarball":"https://registry.npmjs.org/@constellation-network/digital-evidence-sdk/-/digital-evidence-sdk-0.2.0.tgz","fileCount":23,"integrity":"sha512-hnDTMEWLMV89d4TcCtHzyR9rfpbGb4j9X4LvXEd0O2ClvA+MSnD9xggTTrJBslfDtLZpefB2K8VGlXz4u6B7bg==","signatures":[{"sig":"MEUCIDIY9WMK6Akj+f59lpPrKOqRbXeo9E6gnP7GZabaVei0AiEAsDGZd2HHm7s/S2sASxc9TMNmW6A2HXp51tJZrJEX1Wg=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/@constellation-network%2fdigital-evidence-sdk@0.2.0","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"unpackedSize":151344},"main":"dist/cjs/core/index.js","types":"dist/types/core/index.d.ts","module":"dist/esm/core/index.js","engines":{"node":">=20.19.0"},"exports":{".":{"types":"./dist/types/core/index.d.ts","import":"./dist/esm/core/index.js","require":"./dist/cjs/core/index.js"},"./network":{"types":"./dist/types/network/index.d.ts","import":"./dist/esm/network/index.js","require":"./dist/cjs/network/index.js"}},"gitHead":"b51c92d29169cfce89f969becbb2e172403b7ff3","scripts":{"lint":"eslint src tests","test":"jest","build":"npm run build:bundle && npm run build:types","format":"prettier --write src tests","build:types":"tsc -p tsconfig.types.json","build:bundle":"rollup -c","format:check":"prettier --check src tests","test:coverage":"jest --coverage","prepublishOnly":"npm run build && npm test"},"_npmUser":{"name":"GitHub Actions","email":"npm-oidc-no-reply@github.com","trustedPublisher":{"id":"github","oidcConfigId":"oidc:17bb4a1e-fb21-4df3-a128-434b8b9dd8b1"}},"repository":{"url":"git+https://github.com/Constellation-Labs/digital-evidence-sdk.git","type":"git","directory":"packages/typescript"},"_npmVersion":"11.11.0","description":"TypeScript SDK for the Digital Evidence Depository (DED) on Constellation Network","directories":{},"_nodeVersion":"20.20.0","dependencies":{"zod":"^4.3.6","@constellation-network/metagraph-sdk":"^0.2.0"},"_hasShrinkwrap":false,"devDependencies":{"jest":"^30.2.0","tslib":"^2.8.1","eslint":"^10.0.2","rollup":"^4.59.0","ts-jest":"^29.0.0","prettier":"^3.0.0","typescript":"^5.0.0","@types/jest":"^30.0.0","@types/node":"^25.3.3","@rollup/plugin-typescript":"^12.3.0","@typescript-eslint/parser":"^8.56.1","@rollup/plugin-node-resolve":"^16.0.3","@typescript-eslint/eslint-plugin":"^8.56.1"},"_npmOperationalInternal":{"tmp":"tmp/digital-evidence-sdk_0.2.0_1772655068614_0.3089628836375211","host":"s3://npm-registry-packages-npm-production"}},"0.3.0":{"name":"@constellation-network/digital-evidence-sdk","version":"0.3.0","keywords":["constellation","ded","digital-evidence","fingerprint","notarization","metagraph","secp256k1","rfc8785","cryptographic-proof"],"author":{"name":"Constellation Network"},"license":"Apache-2.0","_id":"@constellation-network/digital-evidence-sdk@0.3.0","maintainers":[{"name":"marcus.girolneto","email":"marcus@constellationnetwork.io"},{"name":"alexbrandes","email":"alex@alexbrandes.io"},{"name":"james-constellation","email":"james@constellationnetwork.io"},{"name":"ffox77","email":"ffox77@yahoo.com"}],"homepage":"https://github.com/Constellation-Labs/digital-evidence-sdk#readme","bugs":{"url":"https://github.com/Constellation-Labs/digital-evidence-sdk/issues"},"dist":{"shasum":"31bc75fbecaf93f58924b1a9f3ae9a04b621f650","tarball":"https://registry.npmjs.org/@constellation-network/digital-evidence-sdk/-/digital-evidence-sdk-0.3.0.tgz","fileCount":23,"integrity":"sha512-w82XPwjgejqk84VKD10teKN6u4TA1JVwpVUAKDdQ+ObThi7fs7s8Q+AWAAqk3CL7+kf1nJgYML3JYdD1DtA37Q==","signatures":[{"sig":"MEUCIDEH7Fitn3vDknlP/TUdBG6iF2a+lhDbOkoychtIiRPYAiEAszsImM23pJl9DqoERYqHRiVN2nKfhBHdwKRua3ho9DE=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/@constellation-network%2fdigital-evidence-sdk@0.3.0","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"unpackedSize":164854},"main":"dist/cjs/core/index.js","types":"dist/types/core/index.d.ts","module":"dist/esm/core/index.js","engines":{"node":">=20.19.0"},"exports":{".":{"types":"./dist/types/core/index.d.ts","import":"./dist/esm/core/index.js","require":"./dist/cjs/core/index.js"},"./network":{"types":"./dist/types/network/index.d.ts","import":"./dist/esm/network/index.js","require":"./dist/cjs/network/index.js"}},"gitHead":"e1cb41e677791994eed6a4ca64462d0ce5ca584c","scripts":{"lint":"eslint src tests","test":"jest","build":"npm run build:bundle && npm run build:types","format":"prettier --write src tests","build:types":"tsc -p tsconfig.types.json","build:bundle":"rollup -c","format:check":"prettier --check src tests","test:coverage":"jest --coverage","prepublishOnly":"npm run build && npm test"},"_npmUser":{"name":"GitHub Actions","email":"npm-oidc-no-reply@github.com","trustedPublisher":{"id":"github","oidcConfigId":"oidc:17bb4a1e-fb21-4df3-a128-434b8b9dd8b1"}},"repository":{"url":"git+https://github.com/Constellation-Labs/digital-evidence-sdk.git","type":"git","directory":"packages/typescript"},"_npmVersion":"11.11.0","description":"TypeScript SDK for the Digital Evidence Depository (DED) on Constellation Network","directories":{},"_nodeVersion":"20.20.0","dependencies":{"zod":"^4.3.6","@constellation-network/metagraph-sdk":"^0.2.0"},"_hasShrinkwrap":false,"devDependencies":{"jest":"^30.2.0","tslib":"^2.8.1","eslint":"^10.0.2","rollup":"^4.59.0","ts-jest":"^29.0.0","prettier":"^3.0.0","typescript":"^5.0.0","@types/jest":"^30.0.0","@types/node":"^25.3.3","@rollup/plugin-typescript":"^12.3.0","@typescript-eslint/parser":"^8.56.1","@rollup/plugin-node-resolve":"^16.0.3","@typescript-eslint/eslint-plugin":"^8.56.1"},"_npmOperationalInternal":{"tmp":"tmp/digital-evidence-sdk_0.3.0_1773079436846_0.42231446150593754","host":"s3://npm-registry-packages-npm-production"}},"0.3.2":{"name":"@constellation-network/digital-evidence-sdk","version":"0.3.2","keywords":["constellation","ded","digital-evidence","fingerprint","notarization","metagraph","secp256k1","rfc8785","cryptographic-proof"],"author":{"name":"Constellation Network"},"license":"Apache-2.0","_id":"@constellation-network/digital-evidence-sdk@0.3.2","maintainers":[{"name":"marcus.girolneto","email":"marcus@constellationnetwork.io"},{"name":"alexbrandes","email":"alex@alexbrandes.io"},{"name":"james-constellation","email":"james@constellationnetwork.io"},{"name":"ffox77","email":"ffox77@yahoo.com"}],"homepage":"https://github.com/Constellation-Labs/digital-evidence-sdk#readme","bugs":{"url":"https://github.com/Constellation-Labs/digital-evidence-sdk/issues"},"dist":{"shasum":"de41792e15d11aa27ce49006e00dcf9bcc3033f2","tarball":"https://registry.npmjs.org/@constellation-network/digital-evidence-sdk/-/digital-evidence-sdk-0.3.2.tgz","fileCount":25,"integrity":"sha512-3BPSYotSFHQ5GAvwHrLCm1bVatw3uS7TObD2BDJjn2X9arwEHICYpza3lbR8TWugXKvVcj+5I8sMIMbx4KcIsw==","signatures":[{"sig":"MEYCIQD1sQz1NZR88McK8gVRFL1IsEz3Qsqb9lcuZZpoQGxtNQIhAIBXaiQmunagoUs9DY1gB9T3sglg18h1VJIj3smskHKo","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/@constellation-network%2fdigital-evidence-sdk@0.3.2","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"unpackedSize":176922},"main":"dist/cjs/core/index.js","type":"module","types":"dist/types/core/index.d.ts","module":"dist/esm/core/index.js","engines":{"node":">=20.19.0"},"exports":{".":{"types":"./dist/types/core/index.d.ts","import":"./dist/esm/core/index.js","require":"./dist/cjs/core/index.js"},"./network":{"types":"./dist/types/network/index.d.ts","import":"./dist/esm/network/index.js","require":"./dist/cjs/network/index.js"}},"gitHead":"2ad3696fc8c1e3a656252141fbb87b3c3bf8bd8d","scripts":{"lint":"eslint src tests","test":"jest","build":"npm run build:bundle && npm run build:types && npm run build:fixup","format":"prettier --write src tests","build:fixup":"echo '{\"type\":\"commonjs\"}' > dist/cjs/package.json","build:types":"tsc -p tsconfig.types.json","build:bundle":"rollup -c","format:check":"prettier --check src tests","test:coverage":"jest --coverage","prepublishOnly":"npm run build && npm test"},"_npmUser":{"name":"GitHub Actions","email":"npm-oidc-no-reply@github.com","trustedPublisher":{"id":"github","oidcConfigId":"oidc:17bb4a1e-fb21-4df3-a128-434b8b9dd8b1"}},"repository":{"url":"git+https://github.com/Constellation-Labs/digital-evidence-sdk.git","type":"git","directory":"packages/typescript"},"_npmVersion":"11.12.1","description":"TypeScript SDK for the Digital Evidence Depository (DED) on Constellation Network","directories":{},"_nodeVersion":"20.20.1","dependencies":{"zod":"^4.3.6","@constellation-network/metagraph-sdk":"^0.2.0"},"_hasShrinkwrap":false,"devDependencies":{"jest":"^30.2.0","tslib":"^2.8.1","eslint":"^10.0.2","rollup":"^4.59.0","ts-jest":"^29.0.0","prettier":"^3.0.0","typescript":"^5.0.0","@types/jest":"^30.0.0","@types/node":"^25.3.3","@rollup/plugin-typescript":"^12.3.0","@typescript-eslint/parser":"^8.56.1","@rollup/plugin-node-resolve":"^16.0.3","@typescript-eslint/eslint-plugin":"^8.56.1"},"_npmOperationalInternal":{"tmp":"tmp/digital-evidence-sdk_0.3.2_1775071052096_0.9921327526999202","host":"s3://npm-registry-packages-npm-production"}}},"time":{"created":"2026-03-04T00:17:02.606Z","modified":"2026-05-20T22:34:53.513Z","0.1.0":"2026-03-04T00:17:02.903Z","0.1.1":"2026-03-04T00:43:53.841Z","0.2.0":"2026-03-04T20:11:08.768Z","0.3.0":"2026-03-09T18:03:57.021Z","0.3.2":"2026-04-01T19:17:32.279Z"},"bugs":{"url":"https://github.com/Constellation-Labs/digital-evidence-sdk/issues"},"author":{"name":"Constellation Network"},"license":"Apache-2.0","homepage":"https://github.com/Constellation-Labs/digital-evidence-sdk#readme","keywords":["constellation","ded","digital-evidence","fingerprint","notarization","metagraph","secp256k1","rfc8785","cryptographic-proof"],"repository":{"url":"git+https://github.com/Constellation-Labs/digital-evidence-sdk.git","type":"git","directory":"packages/typescript"},"description":"TypeScript SDK for the Digital Evidence Depository (DED) on Constellation Network","maintainers":[{"email":"marcus@constellationnetwork.io","name":"marcus.girolneto"},{"email":"alex@alexbrandes.io","name":"alexbrandes"},{"email":"james@constellationnetwork.io","name":"james-constellation"},{"email":"gabriel@constellationnetwork.io","name":"gclaramunt"},{"email":"ffox77@yahoo.com","name":"ffox77"}],"readme":"# @constellation-network/digital-evidence-sdk\n\n[![npm](https://img.shields.io/npm/v/@constellation-network/digital-evidence-sdk)](https://www.npmjs.com/package/@constellation-network/digital-evidence-sdk)\n[![CI](https://github.com/Constellation-Labs/digital-evidence-sdk/actions/workflows/ci.yml/badge.svg)](https://github.com/Constellation-Labs/digital-evidence-sdk/actions/workflows/ci.yml)\n[![License](https://img.shields.io/badge/license-Apache--2.0-blue.svg)](../../LICENSE)\n\nTypeScript SDK for the Digital Evidence Depository on Constellation Network. Create, sign, and submit cryptographic fingerprints for document notarization.\n\n## Install\n\n```bash\nnpm install @constellation-network/digital-evidence-sdk\n```\n\n## Modules\n\n**Core** (default import) — pure cryptographic operations with no network dependencies. Works in browsers, Node.js, and serverless environments.\n\n**Network** (subpath import) — HTTP client for the Digital Evidence Ingestion API. Provides authenticated endpoints for submission and search, plus public endpoints for lookup and proofs.\n\n```typescript\n// Core — always available\nimport { generateFingerprint, generateKeyPair } from '@constellation-network/digital-evidence-sdk';\n\n// Network — optional, import separately\nimport { DedClient } from '@constellation-network/digital-evidence-sdk/network';\n```\n\n## Usage\n\n### Generate a signed fingerprint\n\n```typescript\nimport {\n  generateFingerprint,\n  generateKeyPair,\n  validateSubmission,\n} from '@constellation-network/digital-evidence-sdk';\n\nconst keyPair = generateKeyPair();\n\nconst submission = await generateFingerprint({\n  orgId: '550e8400-e29b-41d4-a716-446655440000',\n  tenantId: '123e4567-e89b-12d3-a456-426614174000',\n  eventId: '7ca8c920-0ead-22e2-91c5-11d05fe540d9',\n  documentId: 'contract-2024-001',\n  documentContent: 'This is my document content',\n  includeMetadata: true,\n  tags: { department: 'legal' },\n}, keyPair.privateKey);\n\nvalidateSubmission(submission);\n```\n\n### Step-by-step signing\n\n```typescript\nimport {\n  createFingerprintValue,\n  signFingerprint,\n  hashDocument,\n  getPublicKeyId,\n} from '@constellation-network/digital-evidence-sdk';\n\nconst documentRef = hashDocument('my document content');\n\nconst value = createFingerprintValue({\n  orgId: '550e8400-e29b-41d4-a716-446655440000',\n  tenantId: '123e4567-e89b-12d3-a456-426614174000',\n  eventId: '7ca8c920-0ead-22e2-91c5-11d05fe540d9',\n  documentId: 'contract-2024-001',\n  documentRef,\n}, getPublicKeyId(privateKey));\n\nconst signedFingerprint = await signFingerprint(value, privateKey);\n```\n\n### Reusable generator\n\n```typescript\nimport { FingerprintGenerator } from '@constellation-network/digital-evidence-sdk';\n\nconst generator = new FingerprintGenerator({\n  privateKey: 'your-private-key',\n  orgId: '550e8400-e29b-41d4-a716-446655440000',\n  tenantId: '123e4567-e89b-12d3-a456-426614174000',\n});\n\nconst submission = await generator.generate({\n  eventId: crypto.randomUUID(),\n  documentId: 'doc-001',\n  documentContent: 'Document content',\n  tags: { priority: 'high' },\n});\n```\n\n### Submit to the API\n\n```typescript\nimport { DedClient } from '@constellation-network/digital-evidence-sdk/network';\n\nconst client = new DedClient({\n  baseUrl: 'http://localhost:8081',\n  apiKey: 'your-api-key',\n});\n\n// Authenticated\nconst results = await client.fingerprints.submit([submission]);\nconst search = await client.fingerprints.search({ documentId: 'contract-2024-001' });\n\n// Public (no API key required)\nconst detail = await client.fingerprints.getByHash(hash);\nconst proof = await client.fingerprints.getProof(hash);\nconst stats = await client.fingerprints.getStats();\n```\n\n## Core API\n\n| Export | Description |\n|--------|-------------|\n| `generateFingerprint` | Create, sign, and package a fingerprint in one call |\n| `createFingerprintValue` | Build the fingerprint value object |\n| `signFingerprint` | Sign a fingerprint value with a private key |\n| `hashDocument` | SHA-256 hash a document (string or bytes) |\n| `validateSubmission` | Validate a submission against the schema (throws on error) |\n| `safeValidateSubmission` | Validate without throwing, returns result object |\n| `FingerprintGenerator` | Reusable generator with stored config |\n| `generateKeyPair` | Generate a new SECP256K1 key pair |\n| `keyPairFromPrivateKey` | Derive a key pair from an existing private key |\n\n## Signature Protocol\n\nThe SDK implements `SECP256K1_RFC8785_V1`:\n\n1. Canonicalize JSON per RFC 8785\n2. SHA-256 hash the canonical bytes\n3. Convert hash to hex string, treat as UTF-8 bytes\n4. SHA-512 hash, truncate to 32 bytes\n5. Sign with SECP256K1 ECDSA\n\n## Development\n\n```bash\nnpm install\nnpm test\nnpm run build\nnpm run lint\n```\n\n## License\n\n[Apache-2.0](../../LICENSE)\n","readmeFilename":"README.md"}