@emilia-protocol/verify 1.0.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.
Files changed (5) hide show
  1. package/LICENSE +190 -0
  2. package/README.md +99 -0
  3. package/index.d.ts +61 -0
  4. package/index.js +176 -0
  5. package/package.json +48 -0
package/LICENSE ADDED
@@ -0,0 +1,190 @@
1
+ Apache License
2
+ Version 2.0, January 2004
3
+ http://www.apache.org/licenses/
4
+
5
+ TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
6
+
7
+ 1. Definitions.
8
+
9
+ "License" shall mean the terms and conditions for use, reproduction,
10
+ and distribution as defined by Sections 1 through 9 of this document.
11
+
12
+ "Licensor" shall mean the copyright owner or entity authorized by
13
+ the copyright owner that is granting the License.
14
+
15
+ "Legal Entity" shall mean the union of the acting entity and all
16
+ other entities that control, are controlled by, or are under common
17
+ control with that entity. For the purposes of this definition,
18
+ "control" means (i) the power, direct or indirect, to cause the
19
+ direction or management of such entity, whether by contract or
20
+ otherwise, or (ii) ownership of fifty percent (50%) or more of the
21
+ outstanding shares, or (iii) beneficial ownership of such entity.
22
+
23
+ "You" (or "Your") shall mean an individual or Legal Entity
24
+ exercising permissions granted by this License.
25
+
26
+ "Source" form shall mean the preferred form for making modifications,
27
+ including but not limited to software source code, documentation
28
+ source, and configuration files.
29
+
30
+ "Object" form shall mean any form resulting from mechanical
31
+ transformation or translation of a Source form, including but
32
+ not limited to compiled object code, generated documentation,
33
+ and conversions to other media types.
34
+
35
+ "Work" shall mean the work of authorship, whether in Source or
36
+ Object form, made available under the License, as indicated by a
37
+ copyright notice that is included in or attached to the work
38
+ (an example is provided in the Appendix below).
39
+
40
+ "Derivative Works" shall mean any work, whether in Source or Object
41
+ form, that is based on (or derived from) the Work and for which the
42
+ editorial revisions, annotations, elaborations, or other modifications
43
+ represent, as a whole, an original work of authorship. For the purposes
44
+ of this License, Derivative Works shall not include works that remain
45
+ separable from, or merely link (or bind by name) to the interfaces of,
46
+ the Work and Derivative Works thereof.
47
+
48
+ "Contribution" shall mean any work of authorship, including
49
+ the original version of the Work and any modifications or additions
50
+ to that Work or Derivative Works thereof, that is intentionally
51
+ submitted to the Licensor for inclusion in the Work by the copyright owner
52
+ or by an individual or Legal Entity authorized to submit on behalf of
53
+ the copyright owner. For the purposes of this definition, "submitted"
54
+ means any form of electronic, verbal, or written communication sent
55
+ to the Licensor or its representatives, including but not limited to
56
+ communication on electronic mailing lists, source code control systems,
57
+ and issue tracking systems that are managed by, or on behalf of, the
58
+ Licensor for the purpose of discussing and improving the Work, but
59
+ excluding communication that is conspicuously marked or otherwise
60
+ designated in writing by the copyright owner as "Not a Contribution."
61
+
62
+ "Contributor" shall mean Licensor and any individual or Legal Entity
63
+ on behalf of whom a Contribution has been received by the Licensor and
64
+ subsequently incorporated within the Work.
65
+
66
+ 2. Grant of Copyright License. Subject to the terms and conditions of
67
+ this License, each Contributor hereby grants to You a perpetual,
68
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
69
+ copyright license to reproduce, prepare Derivative Works of,
70
+ publicly display, publicly perform, sublicense, and distribute the
71
+ Work and such Derivative Works in Source or Object form.
72
+
73
+ 3. Grant of Patent License. Subject to the terms and conditions of
74
+ this License, each Contributor hereby grants to You a perpetual,
75
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
76
+ (except as stated in this section) patent license to make, have made,
77
+ use, offer to sell, sell, import, and otherwise transfer the Work,
78
+ where such license applies only to those patent claims licensable
79
+ by such Contributor that are necessarily infringed by their
80
+ Contribution(s) alone or by combination of their Contribution(s)
81
+ with the Work to which such Contribution(s) was submitted. If You
82
+ institute patent litigation against any entity (including a
83
+ cross-claim or counterclaim in a lawsuit) alleging that the Work
84
+ or a Contribution incorporated within the Work constitutes direct
85
+ or contributory patent infringement, then any patent licenses
86
+ granted to You under this License for that Work shall terminate
87
+ as of the date such litigation is filed.
88
+
89
+ 4. Redistribution. You may reproduce and distribute copies of the
90
+ Work or Derivative Works thereof in any medium, with or without
91
+ modifications, and in Source or Object form, provided that You
92
+ meet the following conditions:
93
+
94
+ (a) You must give any other recipients of the Work or
95
+ Derivative Works a copy of this License; and
96
+
97
+ (b) You must cause any modified files to carry prominent notices
98
+ stating that You changed the files; and
99
+
100
+ (c) You must retain, in the Source form of any Derivative Works
101
+ that You distribute, all copyright, patent, trademark, and
102
+ attribution notices from the Source form of the Work,
103
+ excluding those notices that do not pertain to any part of
104
+ the Derivative Works; and
105
+
106
+ (d) If the Work includes a "NOTICE" text file as part of its
107
+ distribution, then any Derivative Works that You distribute must
108
+ include a readable copy of the attribution notices contained
109
+ within such NOTICE file, excluding any notices that do not
110
+ pertain to any part of the Derivative Works, in at least one
111
+ of the following places: within a NOTICE text file distributed
112
+ as part of the Derivative Works; within the Source form or
113
+ documentation, if provided along with the Derivative Works; or,
114
+ within a display generated by the Derivative Works, if and
115
+ wherever such third-party notices normally appear. The contents
116
+ of the NOTICE file are for informational purposes only and
117
+ do not modify the License. You may add Your own attribution
118
+ notices within Derivative Works that You distribute, alongside
119
+ or as an addendum to the NOTICE text from the Work, provided
120
+ that such additional attribution notices cannot be construed
121
+ as modifying the License.
122
+
123
+ You may add Your own copyright statement to Your modifications and
124
+ may provide additional or different license terms and conditions
125
+ for use, reproduction, or distribution of Your modifications, or
126
+ for any such Derivative Works as a whole, provided Your use,
127
+ reproduction, and distribution of the Work otherwise complies with
128
+ the conditions stated in this License.
129
+
130
+ 5. Submission of Contributions. Unless You explicitly state otherwise,
131
+ any Contribution intentionally submitted for inclusion in the Work
132
+ by You to the Licensor shall be under the terms and conditions of
133
+ this License, without any additional terms or conditions.
134
+ Notwithstanding the above, nothing herein shall supersede or modify
135
+ the terms of any separate license agreement you may have executed
136
+ with Licensor regarding such Contributions.
137
+
138
+ 6. Trademarks. This License does not grant permission to use the trade
139
+ names, trademarks, service marks, or product names of the Licensor,
140
+ except as required for reasonable and customary use in describing the
141
+ origin of the Work and reproducing the content of the NOTICE file.
142
+
143
+ 7. Disclaimer of Warranty. Unless required by applicable law or
144
+ agreed to in writing, Licensor provides the Work (and each
145
+ Contributor provides its Contributions) on an "AS IS" BASIS,
146
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
147
+ implied, including, without limitation, any warranties or conditions
148
+ of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
149
+ PARTICULAR PURPOSE. You are solely responsible for determining the
150
+ appropriateness of using or redistributing the Work and assume any
151
+ risks associated with Your exercise of permissions under this License.
152
+
153
+ 8. Limitation of Liability. In no event and under no legal theory,
154
+ whether in tort (including negligence), contract, or otherwise,
155
+ unless required by applicable law (such as deliberate and grossly
156
+ negligent acts) or agreed to in writing, shall any Contributor be
157
+ liable to You for damages, including any direct, indirect, special,
158
+ incidental, or consequential damages of any character arising as a
159
+ result of this License or out of the use or inability to use the
160
+ Work (including but not limited to damages for loss of goodwill,
161
+ work stoppage, computer failure or malfunction, or any and all
162
+ other commercial damages or losses), even if such Contributor
163
+ has been advised of the possibility of such damages.
164
+
165
+ 9. Accepting Warranty or Additional Liability. While redistributing
166
+ the Work or Derivative Works thereof, You may choose to offer,
167
+ and charge a fee for, acceptance of support, warranty, indemnity,
168
+ or other liability obligations and/or rights consistent with this
169
+ License. However, in accepting such obligations, You may act only
170
+ on Your own behalf and on Your sole responsibility, not on behalf
171
+ of any other Contributor, and only if You agree to indemnify,
172
+ defend, and hold each Contributor harmless for any liability
173
+ incurred by, or claims asserted against, such Contributor by reason
174
+ of your accepting any such warranty or additional liability.
175
+
176
+ END OF TERMS AND CONDITIONS
177
+
178
+ Copyright 2024–2026 EMILIA Protocol Contributors
179
+
180
+ Licensed under the Apache License, Version 2.0 (the "License");
181
+ you may not use this file except in compliance with the License.
182
+ You may obtain a copy of the License at
183
+
184
+ http://www.apache.org/licenses/LICENSE-2.0
185
+
186
+ Unless required by applicable law or agreed to in writing, software
187
+ distributed under the License is distributed on an "AS IS" BASIS,
188
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
189
+ See the License for the specific language governing permissions and
190
+ limitations under the License.
package/README.md ADDED
@@ -0,0 +1,99 @@
1
+ # @emilia-protocol/verify
2
+
3
+ **Zero-dependency offline verification for EP trust receipts.**
4
+
5
+ Verify Ed25519-signed trust receipts, Merkle anchor proofs, and commitment proofs using only Node.js built-in `crypto`. No EP infrastructure required. No API key. No account. Just math.
6
+
7
+ This is the core primitive that makes EP a **protocol**, not an API.
8
+
9
+ ## Install
10
+
11
+ ```bash
12
+ npm install @emilia-protocol/verify
13
+ ```
14
+
15
+ ## Quick Start
16
+
17
+ ```js
18
+ import { verifyReceipt } from '@emilia-protocol/verify';
19
+
20
+ // Load a receipt document (EP-RECEIPT-v1 format)
21
+ const receipt = JSON.parse(fs.readFileSync('receipt.json', 'utf8'));
22
+
23
+ // Get the signer's public key (from /.well-known/ep-keys.json)
24
+ const publicKey = 'MFYwEAYHKoZIzj0CAQYFK4EEAA...'; // base64url SPKI DER
25
+
26
+ const result = verifyReceipt(receipt, publicKey);
27
+ console.log(result);
28
+ // { valid: true, checks: { version: true, signature: true, anchor: null } }
29
+ ```
30
+
31
+ ## API
32
+
33
+ ### `verifyReceipt(doc, publicKeyBase64url)`
34
+
35
+ Verify an EP-RECEIPT-v1 document. Performs three independent checks:
36
+
37
+ 1. **Version** — Document format is EP-RECEIPT-v1
38
+ 2. **Signature** — Ed25519 signature over canonical payload
39
+ 3. **Anchor** (if present) — Merkle proof reconstructs claimed root
40
+
41
+ Returns `{ valid, checks, error? }`.
42
+
43
+ ### `verifyMerkleAnchor(leafHash, proof, expectedRoot)`
44
+
45
+ Verify a Merkle inclusion proof. The root can be independently checked on Base L2 via [Basescan](https://basescan.org).
46
+
47
+ Returns `boolean`.
48
+
49
+ ### `verifyCommitmentProof(proof, publicKeyBase64url)`
50
+
51
+ Verify an EP-PROOF-v1 commitment proof. Checks expiry and signature.
52
+
53
+ Returns `{ valid, claim, error? }`.
54
+
55
+ ### `verifyReceiptBundle(bundle, publicKeyBase64url)`
56
+
57
+ Verify all receipts in an EP-BUNDLE-v1 document.
58
+
59
+ Returns `{ valid, total, verified, failed }`.
60
+
61
+ ## Design Principles
62
+
63
+ - **Zero dependencies** — Only `node:crypto`. No supply chain risk.
64
+ - **Offline-first** — No network calls. No EP server needed.
65
+ - **Deterministic** — Canonical JSON serialization for reproducible signatures.
66
+ - **Auditable** — Single file, ~170 lines. Read the entire thing in 5 minutes.
67
+
68
+ ## How It Works
69
+
70
+ ```
71
+ Receipt Document (EP-RECEIPT-v1)
72
+ ├── payload (canonical JSON)
73
+ ├── signature
74
+ │ ├── algorithm: "Ed25519"
75
+ │ ├── signer: "ep_entity_..."
76
+ │ └── value: base64url signature
77
+ └── anchor (optional)
78
+ ├── leaf_hash: SHA-256 of receipt
79
+ ├── merkle_proof: [{hash, position}, ...]
80
+ ├── merkle_root: root hash
81
+ └── chain: "base-sepolia"
82
+
83
+ Verification:
84
+ 1. Canonicalize payload → sorted-key JSON
85
+ 2. Verify Ed25519(canonical_payload, signature, public_key)
86
+ 3. If anchor: reconstruct Merkle root from proof, compare
87
+ ```
88
+
89
+ ## Getting Public Keys
90
+
91
+ Signer public keys are discoverable at `/.well-known/ep-keys.json` on any EP operator:
92
+
93
+ ```bash
94
+ curl https://ep.example.com/.well-known/ep-keys.json
95
+ ```
96
+
97
+ ## License
98
+
99
+ Apache-2.0
package/index.d.ts ADDED
@@ -0,0 +1,61 @@
1
+ /**
2
+ * @emilia-protocol/verify — TypeScript definitions
3
+ * @license Apache-2.0
4
+ */
5
+
6
+ export interface ReceiptVerificationResult {
7
+ valid: boolean;
8
+ checks: {
9
+ version: boolean;
10
+ signature: boolean;
11
+ anchor: boolean | null;
12
+ };
13
+ error?: string;
14
+ }
15
+
16
+ export interface ProofVerificationResult {
17
+ valid: boolean;
18
+ claim: Record<string, unknown> | null;
19
+ error?: string;
20
+ }
21
+
22
+ export interface BundleVerificationResult {
23
+ valid: boolean;
24
+ total: number;
25
+ verified: number;
26
+ failed: string[];
27
+ }
28
+
29
+ /**
30
+ * Verify an EP receipt document (EP-RECEIPT-v1).
31
+ * Zero dependencies — uses only Node.js crypto.
32
+ */
33
+ export function verifyReceipt(
34
+ doc: Record<string, unknown>,
35
+ publicKeyBase64url: string
36
+ ): ReceiptVerificationResult;
37
+
38
+ /**
39
+ * Verify a Merkle inclusion proof against an expected root.
40
+ */
41
+ export function verifyMerkleAnchor(
42
+ leafHash: string,
43
+ proof: Array<{ hash: string; position: 'left' | 'right' }>,
44
+ expectedRoot: string
45
+ ): boolean;
46
+
47
+ /**
48
+ * Verify an EP commitment proof (EP-PROOF-v1).
49
+ */
50
+ export function verifyCommitmentProof(
51
+ proof: Record<string, unknown>,
52
+ publicKeyBase64url: string
53
+ ): ProofVerificationResult;
54
+
55
+ /**
56
+ * Verify a bundle of EP receipts (EP-BUNDLE-v1).
57
+ */
58
+ export function verifyReceiptBundle(
59
+ bundle: Record<string, unknown>,
60
+ publicKeyBase64url: string
61
+ ): BundleVerificationResult;
package/index.js ADDED
@@ -0,0 +1,176 @@
1
+ /**
2
+ * @emilia-protocol/verify — Zero-Dependency Trust Verification
3
+ *
4
+ * Verify EP trust receipts, Merkle anchors, and commitment proofs
5
+ * using ONLY Node.js built-in crypto. No EP infrastructure required.
6
+ *
7
+ * This is the core primitive that makes EP a protocol, not an API.
8
+ * Anyone can verify. No account. No API key. Just math.
9
+ *
10
+ * @license Apache-2.0
11
+ */
12
+
13
+ import crypto from 'crypto';
14
+
15
+ // =============================================================================
16
+ // CONSTANTS
17
+ // =============================================================================
18
+
19
+ const SUPPORTED_VERSIONS = ['EP-RECEIPT-v1'];
20
+ const SUPPORTED_PROOF_VERSIONS = ['EP-PROOF-v1'];
21
+
22
+ // =============================================================================
23
+ // PRIMITIVES
24
+ // =============================================================================
25
+
26
+ function sha256(input) {
27
+ return crypto.createHash('sha256').update(input, 'utf8').digest('hex');
28
+ }
29
+
30
+ function canonicalize(obj) {
31
+ return JSON.stringify(obj, Object.keys(obj).sort());
32
+ }
33
+
34
+ function hashPair(a, b) {
35
+ const sorted = [a, b].sort();
36
+ return sha256(sorted[0] + sorted[1]);
37
+ }
38
+
39
+ // =============================================================================
40
+ // RECEIPT VERIFICATION
41
+ // =============================================================================
42
+
43
+ /**
44
+ * Verify an EP receipt document.
45
+ *
46
+ * Performs up to three independent checks:
47
+ * 1. Version — document format is EP-RECEIPT-v1
48
+ * 2. Signature — Ed25519 over the canonical payload
49
+ * 3. Anchor (if present) — Merkle proof reconstructs the claimed root
50
+ *
51
+ * @param {object} doc - EP receipt document (EP-RECEIPT-v1)
52
+ * @param {string} publicKeyBase64url - Signer's Ed25519 public key (base64url SPKI DER)
53
+ * @returns {{ valid: boolean, checks: { version: boolean, signature: boolean, anchor: boolean|null }, error?: string }}
54
+ */
55
+ export function verifyReceipt(doc, publicKeyBase64url) {
56
+ const checks = { version: false, signature: false, anchor: null };
57
+
58
+ if (!doc?.['@version'] || !SUPPORTED_VERSIONS.includes(doc['@version'])) {
59
+ return { valid: false, checks, error: `Unsupported version: ${doc?.['@version']}` };
60
+ }
61
+ checks.version = true;
62
+
63
+ if (!doc.payload || !doc.signature?.value || !doc.signature?.algorithm) {
64
+ return { valid: false, checks, error: 'Missing payload or signature' };
65
+ }
66
+
67
+ try {
68
+ const payloadBytes = Buffer.from(canonicalize(doc.payload), 'utf8');
69
+ const publicKeyDer = Buffer.from(publicKeyBase64url, 'base64url');
70
+ const keyObject = crypto.createPublicKey({ key: publicKeyDer, format: 'der', type: 'spki' });
71
+ const sigBytes = Buffer.from(doc.signature.value, 'base64url');
72
+ checks.signature = crypto.verify(null, payloadBytes, keyObject, sigBytes);
73
+ } catch (e) {
74
+ return { valid: false, checks, error: `Signature verification failed: ${e.message}` };
75
+ }
76
+
77
+ if (doc.anchor?.merkle_proof && doc.anchor?.leaf_hash && doc.anchor?.merkle_root) {
78
+ checks.anchor = verifyMerkleAnchor(doc.anchor.leaf_hash, doc.anchor.merkle_proof, doc.anchor.merkle_root);
79
+ }
80
+
81
+ const valid = checks.version && checks.signature && (checks.anchor === null || checks.anchor === true);
82
+ return { valid, checks };
83
+ }
84
+
85
+ // =============================================================================
86
+ // MERKLE ANCHOR VERIFICATION
87
+ // =============================================================================
88
+
89
+ /**
90
+ * Verify a Merkle inclusion proof.
91
+ *
92
+ * @param {string} leafHash - hex SHA-256 of the receipt
93
+ * @param {Array<{hash: string, position: 'left'|'right'}>} proof - proof steps
94
+ * @param {string} expectedRoot - hex expected Merkle root
95
+ * @returns {boolean}
96
+ */
97
+ export function verifyMerkleAnchor(leafHash, proof, expectedRoot) {
98
+ if (typeof leafHash !== 'string' || !leafHash) return false;
99
+ if (typeof expectedRoot !== 'string' || !expectedRoot) return false;
100
+ if (!Array.isArray(proof)) return false;
101
+ if (proof.length > 20) return false;
102
+
103
+ let current = leafHash;
104
+ for (const step of proof) {
105
+ if (!step || typeof step.hash !== 'string') return false;
106
+ if (step.position !== 'left' && step.position !== 'right') return false;
107
+ current = step.position === 'left' ? hashPair(step.hash, current) : hashPair(current, step.hash);
108
+ }
109
+
110
+ return current === expectedRoot;
111
+ }
112
+
113
+ // =============================================================================
114
+ // COMMITMENT PROOF VERIFICATION
115
+ // =============================================================================
116
+
117
+ /**
118
+ * Verify an EP commitment proof.
119
+ *
120
+ * @param {object} proof - EP commitment proof document (EP-PROOF-v1)
121
+ * @param {string} publicKeyBase64url - Entity's Ed25519 public key
122
+ * @returns {{ valid: boolean, claim: object, error?: string }}
123
+ */
124
+ export function verifyCommitmentProof(proof, publicKeyBase64url) {
125
+ if (!proof?.['@version'] || !SUPPORTED_PROOF_VERSIONS.includes(proof['@version'])) {
126
+ return { valid: false, claim: null, error: `Unsupported version: ${proof?.['@version']}` };
127
+ }
128
+
129
+ if (proof.expires_at && new Date(proof.expires_at) < new Date()) {
130
+ return { valid: false, claim: proof.claim, error: 'Proof has expired' };
131
+ }
132
+
133
+ if (publicKeyBase64url && proof.signature) {
134
+ try {
135
+ const commitmentBytes = Buffer.from(canonicalize(proof.commitment), 'utf8');
136
+ const publicKeyDer = Buffer.from(publicKeyBase64url, 'base64url');
137
+ const keyObject = crypto.createPublicKey({ key: publicKeyDer, format: 'der', type: 'spki' });
138
+ const sigBytes = Buffer.from(proof.signature.value, 'base64url');
139
+ if (!crypto.verify(null, commitmentBytes, keyObject, sigBytes)) {
140
+ return { valid: false, claim: proof.claim, error: 'Invalid signature' };
141
+ }
142
+ } catch (e) {
143
+ return { valid: false, claim: proof.claim, error: `Signature check failed: ${e.message}` };
144
+ }
145
+ }
146
+
147
+ return { valid: true, claim: proof.claim };
148
+ }
149
+
150
+ // =============================================================================
151
+ // BUNDLE VERIFICATION
152
+ // =============================================================================
153
+
154
+ /**
155
+ * Verify an EP receipt bundle.
156
+ *
157
+ * @param {object} bundle - EP-BUNDLE-v1 format
158
+ * @param {string} publicKeyBase64url - Entity's Ed25519 public key
159
+ * @returns {{ valid: boolean, total: number, verified: number, failed: string[] }}
160
+ */
161
+ export function verifyReceiptBundle(bundle, publicKeyBase64url) {
162
+ if (bundle?.['@version'] !== 'EP-BUNDLE-v1') {
163
+ return { valid: false, total: 0, verified: 0, failed: ['Invalid bundle version'] };
164
+ }
165
+
166
+ const failed = [];
167
+ let verified = 0;
168
+
169
+ for (let i = 0; i < bundle.documents.length; i++) {
170
+ const result = verifyReceipt(bundle.documents[i], publicKeyBase64url);
171
+ if (result.valid) verified++;
172
+ else failed.push(`doc[${i}]: ${result.error || 'verification failed'}`);
173
+ }
174
+
175
+ return { valid: failed.length === 0, total: bundle.documents.length, verified, failed };
176
+ }
package/package.json ADDED
@@ -0,0 +1,48 @@
1
+ {
2
+ "name": "@emilia-protocol/verify",
3
+ "version": "1.0.0",
4
+ "description": "Zero-dependency standalone verification for EP trust receipts, Merkle anchors, and commitment proofs. Uses only Node.js built-in crypto. No EP infrastructure required.",
5
+ "license": "Apache-2.0",
6
+ "type": "module",
7
+ "main": "index.js",
8
+ "types": "index.d.ts",
9
+ "exports": {
10
+ ".": {
11
+ "import": "./index.js",
12
+ "types": "./index.d.ts"
13
+ }
14
+ },
15
+ "files": [
16
+ "index.js",
17
+ "index.d.ts",
18
+ "README.md",
19
+ "LICENSE"
20
+ ],
21
+ "engines": {
22
+ "node": ">=18.0.0"
23
+ },
24
+ "keywords": [
25
+ "emilia-protocol",
26
+ "trust",
27
+ "verification",
28
+ "ed25519",
29
+ "merkle",
30
+ "receipts",
31
+ "cryptography",
32
+ "zero-dependency",
33
+ "offline-verification"
34
+ ],
35
+ "repository": {
36
+ "type": "git",
37
+ "url": "https://github.com/emiliaprotocol/emilia-protocol.git",
38
+ "directory": "packages/verify"
39
+ },
40
+ "homepage": "https://emiliaprotocol.ai",
41
+ "bugs": {
42
+ "url": "https://github.com/emiliaprotocol/emilia-protocol/issues"
43
+ },
44
+ "author": "Emilia Protocol Contributors",
45
+ "scripts": {
46
+ "test": "node --test test.js"
47
+ }
48
+ }