@oma3/omatrust 0.1.0-alpha.1 → 0.1.0-alpha.11

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 (44) hide show
  1. package/README.md +21 -7
  2. package/dist/identity/index.cjs +544 -1
  3. package/dist/identity/index.cjs.map +1 -1
  4. package/dist/identity/index.d.cts +2 -1
  5. package/dist/identity/index.d.ts +2 -1
  6. package/dist/identity/index.js +528 -2
  7. package/dist/identity/index.js.map +1 -1
  8. package/dist/index-BOvk-7Ku.d.cts +235 -0
  9. package/dist/index-C2w5EvFH.d.ts +329 -0
  10. package/dist/index-QueRiudB.d.cts +329 -0
  11. package/dist/index-R78TpAhN.d.ts +235 -0
  12. package/dist/index.cjs +2020 -145
  13. package/dist/index.cjs.map +1 -1
  14. package/dist/index.d.cts +4 -2
  15. package/dist/index.d.ts +4 -2
  16. package/dist/index.js +2021 -146
  17. package/dist/index.js.map +1 -1
  18. package/dist/reputation/index.browser.cjs +3010 -0
  19. package/dist/reputation/index.browser.cjs.map +1 -0
  20. package/dist/reputation/index.browser.d.cts +14 -0
  21. package/dist/reputation/index.browser.d.ts +14 -0
  22. package/dist/reputation/index.browser.js +2946 -0
  23. package/dist/reputation/index.browser.js.map +1 -0
  24. package/dist/reputation/index.cjs +1884 -123
  25. package/dist/reputation/index.cjs.map +1 -1
  26. package/dist/reputation/index.d.cts +3 -1
  27. package/dist/reputation/index.d.ts +3 -1
  28. package/dist/reputation/index.js +1861 -123
  29. package/dist/reputation/index.js.map +1 -1
  30. package/dist/subject-ownership-B7cFlm8c.d.cts +664 -0
  31. package/dist/subject-ownership-B7cFlm8c.d.ts +664 -0
  32. package/dist/types-dpYxRq8N.d.cts +281 -0
  33. package/dist/types-dpYxRq8N.d.ts +281 -0
  34. package/dist/widgets/index.cjs +238 -0
  35. package/dist/widgets/index.cjs.map +1 -0
  36. package/dist/widgets/index.d.cts +158 -0
  37. package/dist/widgets/index.d.ts +158 -0
  38. package/dist/widgets/index.js +226 -0
  39. package/dist/widgets/index.js.map +1 -0
  40. package/package.json +35 -7
  41. package/dist/index-ChbJxwOA.d.cts +0 -415
  42. package/dist/index-ChbJxwOA.d.ts +0 -415
  43. package/dist/index-QZDExA4I.d.cts +0 -90
  44. package/dist/index-QZDExA4I.d.ts +0 -90
@@ -0,0 +1,329 @@
1
+ import { k as GetControllerAuthorizationParams, d as ControllerAuthorizationResult, D as Did, aV as VerifyDnsTxtControllerDidOptions, A as AttestationQueryResult, a as AttestationValidationError, B as BuildDelegatedTypedDataFromEncodedParams, C as CallControllerWitnessParams, b as CallControllerWitnessResult, c as ChainConstants, aW as ContractOwnershipProvider, e as ControllerWitnessEvidence, f as CreatePopEip712ProofParams, g as CreatePopJwsProofParams, h as DnsTxtRecordResult, aX as EIP1967_ADMIN_SLOT, E as EvidencePointerProof, i as EvmOwnershipProvider, G as GetAttestationParams, j as GetAttestationsByAttesterParams, l as GetLatestAttestationsParams, H as Hex, L as ListAttestationsParams, aY as OWNERSHIP_PATTERNS, P as PopEip712Proof, m as PopJwsProof, n as PrepareDelegatedAttestationParams, o as PrepareDelegatedAttestationResult, p as ProofPurpose, q as ProofType, r as ProofWrapper, R as RelayErrorDetails, s as RelayMetadata, t as RequestControllerWitnessParams, u as RequestControllerWitnessResult, v as RevokeAttestationParams, w as RevokeAttestationResult, S as SchemaField, x as SubjectOwnershipVerificationMethod, y as SubjectOwnershipVerificationResult, z as SubmitAttestationParams, F as SubmitAttestationResult, I as SubmitDelegatedAttestationParams, J as SubmitDelegatedAttestationResult, T as TxEncodedValueProof, K as TxInteractionProof, V as VerifyAttestationParams, M as VerifyAttestationResult, N as VerifyDidJsonControllerDidOptions, O as VerifyDidPkhOwnershipParams, Q as VerifyDidWebOwnershipParams, U as VerifyProofParams, W as VerifyProofResult, X as VerifySubjectOwnershipParams, Y as W3CKeyPurpose, Z as X402OfferProof, _ as X402ReceiptProof, $ as buildDelegatedAttestationTypedData, a0 as buildDelegatedTypedDataFromEncoded, a1 as buildDnsTxtRecord, a2 as buildEip712Domain, a3 as calculateAverageUserReviewRating, a4 as calculateTransferAmount, a5 as calculateTransferAmountFromAddresses, a6 as callControllerWitness, a7 as constructSeed, a8 as createEvidencePointerProof, a9 as createPopEip712Proof, aa as createPopJwsProof, ab as createTxEncodedValueProof, ac as createTxInteractionProof, ad as createX402OfferProof, ae as createX402ReceiptProof, af as decodeAttestationData, ag as deduplicateReviews, aZ as discoverContractOwner, a_ as discoverControllingWalletDid, ah as encodeAttestationData, ai as extractEvmAddressesFromDidDocument, aj as extractExpirationTime, ak as extractJwksFromDidDocument, al as fetchDidDocument, am as formatSchemaUid, an as formatTransferAmount, ao as getAttestation, ap as getAttestationsByAttester, aq as getAttestationsForDid, ar as getChainConstants, as as getExplorerAddressUrl, at as getExplorerTxUrl, au as getLatestAttestations, av as getMajorVersion, aw as getOmaTrustProofEip712Types, ax as getSchemaDetails, ay as getSupportedChainIds, az as hashSeed, aA as isChainSupported, aB as listAttestations, aC as normalizeSchema, aD as parseDnsTxtRecord, aE as prepareDelegatedAttestation, a$ as readOwnerFromContract, aF as requestControllerWitness, aG as revokeAttestation, aH as schemaToString, aI as splitSignature, aJ as submitAttestation, aK as submitDelegatedAttestation, aL as validateAttestationData, aM as verifyAttestation, aN as verifyDidDocumentControllerDid, aO as verifyDidJsonControllerDid, aP as verifyDidPkhOwnership, aQ as verifyDidWebOwnership, aR as verifyEip712Signature, aS as verifyProof, aT as verifySchemaExists, aU as verifySubjectOwnership, b0 as verifyTransferProof } from './subject-ownership-B7cFlm8c.cjs';
2
+ import { R as ResolveKeyOptions, c as JwsVerificationResult, b as JwsVerificationFailure } from './types-dpYxRq8N.cjs';
3
+
4
+ /**
5
+ * Controller Authorization — verifies the time window during which a controller
6
+ * was authorized for a subject DID.
7
+ *
8
+ * This is the "read/verify" counterpart to requestControllerWitness (write).
9
+ *
10
+ * For did:web subjects:
11
+ * - Controller witness attestations (strongest durable evidence)
12
+ * - Key binding with purpose check
13
+ * - Live DNS TXT / did.json verification (current-point-in-time fallback)
14
+ *
15
+ * For did:pkh subjects (smart contracts):
16
+ * - Direct subject ownership check (owner/admin/EIP-1967)
17
+ * - Key binding with transfer proof verification
18
+ * - NOTE: Only EVM chains are currently supported for contract ownership checks.
19
+ * Non-EVM did:pkh subjects (e.g. Solana) will need chain-specific verification.
20
+ */
21
+
22
+ /**
23
+ * Determine the authorization window for a controller-subject pair.
24
+ *
25
+ * For did:web subjects, checks:
26
+ * 1. On-chain controller-witness attestations (strongest evidence)
27
+ * 2. On-chain key-binding revocation and purpose status
28
+ * 3. Live DNS TXT / did.json verification (current-point-in-time fallback)
29
+ *
30
+ * For did:pkh subjects (smart contracts), checks:
31
+ * 1. Direct subject ownership (controller is the contract owner/admin)
32
+ * 2. Key binding with transfer proof verification
33
+ *
34
+ * Returns the authorization window so the consumer can filter attestations
35
+ * by timestamp without repeated on-chain queries.
36
+ */
37
+ declare function getControllerAuthorization(params: GetControllerAuthorizationParams): Promise<ControllerAuthorizationResult>;
38
+
39
+ /**
40
+ * x402 JWS Verification — Phase 5
41
+ *
42
+ * Verifies x402 signed offer and receipt artifacts using JWS Compact Serialization.
43
+ *
44
+ * Two verification paths:
45
+ * 1. Embedded JWK: header contains `jwk` → validate, verify signature, derive did:jwk
46
+ * 2. KID Resolution: header contains `kid` (no `jwk`) → resolve DID URL → verify → derive did:jwk
47
+ *
48
+ * If both `kid` and `jwk` are present and the resolved key conflicts with the
49
+ * embedded key, verification fails.
50
+ *
51
+ * JWS verification is NOT authorization. It only proves the signature is valid
52
+ * and returns the did:jwk for downstream authorization checks.
53
+ */
54
+
55
+ /** x402 JWS artifact envelope */
56
+ interface X402JwsArtifact {
57
+ format: "jws";
58
+ signature: string;
59
+ }
60
+ /** Options for x402 JWS verification */
61
+ interface X402JwsVerifyOptions {
62
+ /**
63
+ * Options for DID URL key resolution (used when kid is present).
64
+ * Pass a custom fetchDidDocument for testing or non-standard resolution.
65
+ */
66
+ resolveOptions?: ResolveKeyOptions;
67
+ }
68
+ /**
69
+ * Verify an x402 JWS artifact (offer or receipt).
70
+ *
71
+ * This is the core verification function. It:
72
+ * 1. Parses the compact JWS
73
+ * 2. Decodes the protected header
74
+ * 3. Requires `alg` and at least one of `kid` or `jwk`
75
+ * 4. Selects the public key (embedded jwk or resolved kid)
76
+ * 5. Verifies the JWS signature
77
+ * 6. Derives did:jwk from the verified public key
78
+ * 7. Returns a structured result
79
+ *
80
+ * Does NOT validate payload shape — use verifyX402JwsOffer or verifyX402JwsReceipt
81
+ * for payload validation.
82
+ *
83
+ * @param artifact - The x402 JWS artifact envelope
84
+ * @param options - Optional verification options (resolver config, etc.)
85
+ * @returns JwsVerificationResult on success, JwsVerificationFailure on failure
86
+ */
87
+ declare function verifyX402JwsArtifact(artifact: X402JwsArtifact, options?: X402JwsVerifyOptions): Promise<JwsVerificationResult | JwsVerificationFailure>;
88
+ /**
89
+ * Verify an x402 JWS offer artifact.
90
+ *
91
+ * Performs full JWS signature verification and validates that the payload
92
+ * contains required offer fields: version, resourceUrl, scheme, network,
93
+ * asset, payTo, amount.
94
+ *
95
+ * @param artifact - The x402 JWS artifact envelope
96
+ * @param options - Optional verification options
97
+ * @returns JwsVerificationResult on success, JwsVerificationFailure on failure
98
+ */
99
+ declare function verifyX402JwsOffer(artifact: X402JwsArtifact, options?: X402JwsVerifyOptions): Promise<JwsVerificationResult | JwsVerificationFailure>;
100
+ /**
101
+ * Verify an x402 JWS receipt artifact.
102
+ *
103
+ * Performs full JWS signature verification and validates that the payload
104
+ * contains required receipt fields: version, network, resourceUrl, payer,
105
+ * issuedAt.
106
+ *
107
+ * @param artifact - The x402 JWS artifact envelope
108
+ * @param options - Optional verification options
109
+ * @returns JwsVerificationResult on success, JwsVerificationFailure on failure
110
+ */
111
+ declare function verifyX402JwsReceipt(artifact: X402JwsArtifact, options?: X402JwsVerifyOptions): Promise<JwsVerificationResult | JwsVerificationFailure>;
112
+
113
+ /**
114
+ * x402 EIP-712 Verification — Phase 5b
115
+ *
116
+ * Verifies x402 signed offer and receipt artifacts using EIP-712 typed data signatures.
117
+ *
118
+ * EIP-712 is the simpler verification path: the signer address is recovered directly
119
+ * from the signature using ethers verifyTypedData. There is no DID URL resolution or
120
+ * JWK handling — the recovered address is the verification output.
121
+ *
122
+ * EIP-712 verification is NOT authorization. It only proves the signature is valid
123
+ * and returns the recovered signer address for downstream authorization checks.
124
+ */
125
+ /** x402 EIP-712 artifact envelope */
126
+ interface X402Eip712Artifact {
127
+ format: "eip712";
128
+ payload: Record<string, unknown>;
129
+ signature: string;
130
+ }
131
+ /** Successful EIP-712 verification result */
132
+ interface Eip712VerificationResult {
133
+ valid: true;
134
+ /** Decoded payload from the artifact */
135
+ payload: Record<string, unknown>;
136
+ /** Recovered signer address (checksummed) */
137
+ signer: string;
138
+ /** Whether this is an offer or receipt */
139
+ artifactType: "offer" | "receipt";
140
+ }
141
+ /** Failed EIP-712 verification result */
142
+ interface Eip712VerificationFailure {
143
+ valid: false;
144
+ error: {
145
+ code: string;
146
+ message: string;
147
+ };
148
+ payload?: Record<string, unknown>;
149
+ signer?: string;
150
+ }
151
+ /**
152
+ * Verify an x402 EIP-712 artifact (offer or receipt).
153
+ *
154
+ * This is the core verification function. It:
155
+ * 1. Validates the artifact envelope (format, payload, signature)
156
+ * 2. Validates payload shape for the artifact type
157
+ * 3. Constructs EIP-712 typed data using canonical domain and types
158
+ * 4. Verifies signature and recovers signer address
159
+ * 5. Returns structured result with recovered signer
160
+ *
161
+ * @param artifact - The x402 EIP-712 artifact envelope
162
+ * @param artifactType - Whether this is an "offer" or "receipt"
163
+ * @returns Eip712VerificationResult on success, Eip712VerificationFailure on failure
164
+ */
165
+ declare function verifyX402Eip712Artifact(artifact: X402Eip712Artifact, artifactType: "offer" | "receipt"): Eip712VerificationResult | Eip712VerificationFailure;
166
+ /**
167
+ * Verify an x402 EIP-712 offer artifact.
168
+ *
169
+ * Recovers the signer address and validates that the payload contains
170
+ * required offer fields: version, resourceUrl, scheme, network, asset, payTo, amount.
171
+ *
172
+ * @param artifact - The x402 EIP-712 artifact envelope
173
+ * @returns Eip712VerificationResult on success, Eip712VerificationFailure on failure
174
+ */
175
+ declare function verifyX402Eip712Offer(artifact: X402Eip712Artifact): Eip712VerificationResult | Eip712VerificationFailure;
176
+ /**
177
+ * Verify an x402 EIP-712 receipt artifact.
178
+ *
179
+ * Recovers the signer address and validates that the payload contains
180
+ * required receipt fields: version, network, resourceUrl, payer, issuedAt.
181
+ *
182
+ * @param artifact - The x402 EIP-712 artifact envelope
183
+ * @returns Eip712VerificationResult on success, Eip712VerificationFailure on failure
184
+ */
185
+ declare function verifyX402Eip712Receipt(artifact: X402Eip712Artifact): Eip712VerificationResult | Eip712VerificationFailure;
186
+
187
+ declare function verifyDnsTxtControllerDid(domain: string, expectedControllerDid: Did, options?: VerifyDnsTxtControllerDidOptions): Promise<{
188
+ valid: boolean;
189
+ record?: string;
190
+ reason?: string;
191
+ }>;
192
+
193
+ declare const index_AttestationQueryResult: typeof AttestationQueryResult;
194
+ declare const index_AttestationValidationError: typeof AttestationValidationError;
195
+ declare const index_BuildDelegatedTypedDataFromEncodedParams: typeof BuildDelegatedTypedDataFromEncodedParams;
196
+ declare const index_CallControllerWitnessParams: typeof CallControllerWitnessParams;
197
+ declare const index_CallControllerWitnessResult: typeof CallControllerWitnessResult;
198
+ declare const index_ChainConstants: typeof ChainConstants;
199
+ declare const index_ContractOwnershipProvider: typeof ContractOwnershipProvider;
200
+ declare const index_ControllerAuthorizationResult: typeof ControllerAuthorizationResult;
201
+ declare const index_ControllerWitnessEvidence: typeof ControllerWitnessEvidence;
202
+ declare const index_CreatePopEip712ProofParams: typeof CreatePopEip712ProofParams;
203
+ declare const index_CreatePopJwsProofParams: typeof CreatePopJwsProofParams;
204
+ declare const index_Did: typeof Did;
205
+ declare const index_DnsTxtRecordResult: typeof DnsTxtRecordResult;
206
+ declare const index_EIP1967_ADMIN_SLOT: typeof EIP1967_ADMIN_SLOT;
207
+ type index_Eip712VerificationFailure = Eip712VerificationFailure;
208
+ type index_Eip712VerificationResult = Eip712VerificationResult;
209
+ declare const index_EvidencePointerProof: typeof EvidencePointerProof;
210
+ declare const index_EvmOwnershipProvider: typeof EvmOwnershipProvider;
211
+ declare const index_GetAttestationParams: typeof GetAttestationParams;
212
+ declare const index_GetAttestationsByAttesterParams: typeof GetAttestationsByAttesterParams;
213
+ declare const index_GetControllerAuthorizationParams: typeof GetControllerAuthorizationParams;
214
+ declare const index_GetLatestAttestationsParams: typeof GetLatestAttestationsParams;
215
+ declare const index_Hex: typeof Hex;
216
+ declare const index_ListAttestationsParams: typeof ListAttestationsParams;
217
+ declare const index_OWNERSHIP_PATTERNS: typeof OWNERSHIP_PATTERNS;
218
+ declare const index_PopEip712Proof: typeof PopEip712Proof;
219
+ declare const index_PopJwsProof: typeof PopJwsProof;
220
+ declare const index_PrepareDelegatedAttestationParams: typeof PrepareDelegatedAttestationParams;
221
+ declare const index_PrepareDelegatedAttestationResult: typeof PrepareDelegatedAttestationResult;
222
+ declare const index_ProofPurpose: typeof ProofPurpose;
223
+ declare const index_ProofType: typeof ProofType;
224
+ declare const index_ProofWrapper: typeof ProofWrapper;
225
+ declare const index_RelayErrorDetails: typeof RelayErrorDetails;
226
+ declare const index_RelayMetadata: typeof RelayMetadata;
227
+ declare const index_RequestControllerWitnessParams: typeof RequestControllerWitnessParams;
228
+ declare const index_RequestControllerWitnessResult: typeof RequestControllerWitnessResult;
229
+ declare const index_RevokeAttestationParams: typeof RevokeAttestationParams;
230
+ declare const index_RevokeAttestationResult: typeof RevokeAttestationResult;
231
+ declare const index_SchemaField: typeof SchemaField;
232
+ declare const index_SubjectOwnershipVerificationMethod: typeof SubjectOwnershipVerificationMethod;
233
+ declare const index_SubjectOwnershipVerificationResult: typeof SubjectOwnershipVerificationResult;
234
+ declare const index_SubmitAttestationParams: typeof SubmitAttestationParams;
235
+ declare const index_SubmitAttestationResult: typeof SubmitAttestationResult;
236
+ declare const index_SubmitDelegatedAttestationParams: typeof SubmitDelegatedAttestationParams;
237
+ declare const index_SubmitDelegatedAttestationResult: typeof SubmitDelegatedAttestationResult;
238
+ declare const index_TxEncodedValueProof: typeof TxEncodedValueProof;
239
+ declare const index_TxInteractionProof: typeof TxInteractionProof;
240
+ declare const index_VerifyAttestationParams: typeof VerifyAttestationParams;
241
+ declare const index_VerifyAttestationResult: typeof VerifyAttestationResult;
242
+ declare const index_VerifyDidJsonControllerDidOptions: typeof VerifyDidJsonControllerDidOptions;
243
+ declare const index_VerifyDidPkhOwnershipParams: typeof VerifyDidPkhOwnershipParams;
244
+ declare const index_VerifyDidWebOwnershipParams: typeof VerifyDidWebOwnershipParams;
245
+ declare const index_VerifyDnsTxtControllerDidOptions: typeof VerifyDnsTxtControllerDidOptions;
246
+ declare const index_VerifyProofParams: typeof VerifyProofParams;
247
+ declare const index_VerifyProofResult: typeof VerifyProofResult;
248
+ declare const index_VerifySubjectOwnershipParams: typeof VerifySubjectOwnershipParams;
249
+ declare const index_W3CKeyPurpose: typeof W3CKeyPurpose;
250
+ type index_X402Eip712Artifact = X402Eip712Artifact;
251
+ type index_X402JwsArtifact = X402JwsArtifact;
252
+ type index_X402JwsVerifyOptions = X402JwsVerifyOptions;
253
+ declare const index_X402OfferProof: typeof X402OfferProof;
254
+ declare const index_X402ReceiptProof: typeof X402ReceiptProof;
255
+ declare const index_buildDelegatedAttestationTypedData: typeof buildDelegatedAttestationTypedData;
256
+ declare const index_buildDelegatedTypedDataFromEncoded: typeof buildDelegatedTypedDataFromEncoded;
257
+ declare const index_buildDnsTxtRecord: typeof buildDnsTxtRecord;
258
+ declare const index_buildEip712Domain: typeof buildEip712Domain;
259
+ declare const index_calculateAverageUserReviewRating: typeof calculateAverageUserReviewRating;
260
+ declare const index_calculateTransferAmount: typeof calculateTransferAmount;
261
+ declare const index_calculateTransferAmountFromAddresses: typeof calculateTransferAmountFromAddresses;
262
+ declare const index_callControllerWitness: typeof callControllerWitness;
263
+ declare const index_constructSeed: typeof constructSeed;
264
+ declare const index_createEvidencePointerProof: typeof createEvidencePointerProof;
265
+ declare const index_createPopEip712Proof: typeof createPopEip712Proof;
266
+ declare const index_createPopJwsProof: typeof createPopJwsProof;
267
+ declare const index_createTxEncodedValueProof: typeof createTxEncodedValueProof;
268
+ declare const index_createTxInteractionProof: typeof createTxInteractionProof;
269
+ declare const index_createX402OfferProof: typeof createX402OfferProof;
270
+ declare const index_createX402ReceiptProof: typeof createX402ReceiptProof;
271
+ declare const index_decodeAttestationData: typeof decodeAttestationData;
272
+ declare const index_deduplicateReviews: typeof deduplicateReviews;
273
+ declare const index_discoverContractOwner: typeof discoverContractOwner;
274
+ declare const index_discoverControllingWalletDid: typeof discoverControllingWalletDid;
275
+ declare const index_encodeAttestationData: typeof encodeAttestationData;
276
+ declare const index_extractEvmAddressesFromDidDocument: typeof extractEvmAddressesFromDidDocument;
277
+ declare const index_extractExpirationTime: typeof extractExpirationTime;
278
+ declare const index_extractJwksFromDidDocument: typeof extractJwksFromDidDocument;
279
+ declare const index_fetchDidDocument: typeof fetchDidDocument;
280
+ declare const index_formatSchemaUid: typeof formatSchemaUid;
281
+ declare const index_formatTransferAmount: typeof formatTransferAmount;
282
+ declare const index_getAttestation: typeof getAttestation;
283
+ declare const index_getAttestationsByAttester: typeof getAttestationsByAttester;
284
+ declare const index_getAttestationsForDid: typeof getAttestationsForDid;
285
+ declare const index_getChainConstants: typeof getChainConstants;
286
+ declare const index_getControllerAuthorization: typeof getControllerAuthorization;
287
+ declare const index_getExplorerAddressUrl: typeof getExplorerAddressUrl;
288
+ declare const index_getExplorerTxUrl: typeof getExplorerTxUrl;
289
+ declare const index_getLatestAttestations: typeof getLatestAttestations;
290
+ declare const index_getMajorVersion: typeof getMajorVersion;
291
+ declare const index_getOmaTrustProofEip712Types: typeof getOmaTrustProofEip712Types;
292
+ declare const index_getSchemaDetails: typeof getSchemaDetails;
293
+ declare const index_getSupportedChainIds: typeof getSupportedChainIds;
294
+ declare const index_hashSeed: typeof hashSeed;
295
+ declare const index_isChainSupported: typeof isChainSupported;
296
+ declare const index_listAttestations: typeof listAttestations;
297
+ declare const index_normalizeSchema: typeof normalizeSchema;
298
+ declare const index_parseDnsTxtRecord: typeof parseDnsTxtRecord;
299
+ declare const index_prepareDelegatedAttestation: typeof prepareDelegatedAttestation;
300
+ declare const index_readOwnerFromContract: typeof readOwnerFromContract;
301
+ declare const index_requestControllerWitness: typeof requestControllerWitness;
302
+ declare const index_revokeAttestation: typeof revokeAttestation;
303
+ declare const index_schemaToString: typeof schemaToString;
304
+ declare const index_splitSignature: typeof splitSignature;
305
+ declare const index_submitAttestation: typeof submitAttestation;
306
+ declare const index_submitDelegatedAttestation: typeof submitDelegatedAttestation;
307
+ declare const index_validateAttestationData: typeof validateAttestationData;
308
+ declare const index_verifyAttestation: typeof verifyAttestation;
309
+ declare const index_verifyDidDocumentControllerDid: typeof verifyDidDocumentControllerDid;
310
+ declare const index_verifyDidJsonControllerDid: typeof verifyDidJsonControllerDid;
311
+ declare const index_verifyDidPkhOwnership: typeof verifyDidPkhOwnership;
312
+ declare const index_verifyDidWebOwnership: typeof verifyDidWebOwnership;
313
+ declare const index_verifyDnsTxtControllerDid: typeof verifyDnsTxtControllerDid;
314
+ declare const index_verifyEip712Signature: typeof verifyEip712Signature;
315
+ declare const index_verifyProof: typeof verifyProof;
316
+ declare const index_verifySchemaExists: typeof verifySchemaExists;
317
+ declare const index_verifySubjectOwnership: typeof verifySubjectOwnership;
318
+ declare const index_verifyTransferProof: typeof verifyTransferProof;
319
+ declare const index_verifyX402Eip712Artifact: typeof verifyX402Eip712Artifact;
320
+ declare const index_verifyX402Eip712Offer: typeof verifyX402Eip712Offer;
321
+ declare const index_verifyX402Eip712Receipt: typeof verifyX402Eip712Receipt;
322
+ declare const index_verifyX402JwsArtifact: typeof verifyX402JwsArtifact;
323
+ declare const index_verifyX402JwsOffer: typeof verifyX402JwsOffer;
324
+ declare const index_verifyX402JwsReceipt: typeof verifyX402JwsReceipt;
325
+ declare namespace index {
326
+ export { index_AttestationQueryResult as AttestationQueryResult, index_AttestationValidationError as AttestationValidationError, index_BuildDelegatedTypedDataFromEncodedParams as BuildDelegatedTypedDataFromEncodedParams, index_CallControllerWitnessParams as CallControllerWitnessParams, index_CallControllerWitnessResult as CallControllerWitnessResult, index_ChainConstants as ChainConstants, index_ContractOwnershipProvider as ContractOwnershipProvider, index_ControllerAuthorizationResult as ControllerAuthorizationResult, index_ControllerWitnessEvidence as ControllerWitnessEvidence, index_CreatePopEip712ProofParams as CreatePopEip712ProofParams, index_CreatePopJwsProofParams as CreatePopJwsProofParams, index_Did as Did, index_DnsTxtRecordResult as DnsTxtRecordResult, index_EIP1967_ADMIN_SLOT as EIP1967_ADMIN_SLOT, type index_Eip712VerificationFailure as Eip712VerificationFailure, type index_Eip712VerificationResult as Eip712VerificationResult, index_EvidencePointerProof as EvidencePointerProof, index_EvmOwnershipProvider as EvmOwnershipProvider, index_GetAttestationParams as GetAttestationParams, index_GetAttestationsByAttesterParams as GetAttestationsByAttesterParams, index_GetControllerAuthorizationParams as GetControllerAuthorizationParams, index_GetLatestAttestationsParams as GetLatestAttestationsParams, index_Hex as Hex, index_ListAttestationsParams as ListAttestationsParams, index_OWNERSHIP_PATTERNS as OWNERSHIP_PATTERNS, index_PopEip712Proof as PopEip712Proof, index_PopJwsProof as PopJwsProof, index_PrepareDelegatedAttestationParams as PrepareDelegatedAttestationParams, index_PrepareDelegatedAttestationResult as PrepareDelegatedAttestationResult, index_ProofPurpose as ProofPurpose, index_ProofType as ProofType, index_ProofWrapper as ProofWrapper, index_RelayErrorDetails as RelayErrorDetails, index_RelayMetadata as RelayMetadata, index_RequestControllerWitnessParams as RequestControllerWitnessParams, index_RequestControllerWitnessResult as RequestControllerWitnessResult, index_RevokeAttestationParams as RevokeAttestationParams, index_RevokeAttestationResult as RevokeAttestationResult, index_SchemaField as SchemaField, index_SubjectOwnershipVerificationMethod as SubjectOwnershipVerificationMethod, index_SubjectOwnershipVerificationResult as SubjectOwnershipVerificationResult, index_SubmitAttestationParams as SubmitAttestationParams, index_SubmitAttestationResult as SubmitAttestationResult, index_SubmitDelegatedAttestationParams as SubmitDelegatedAttestationParams, index_SubmitDelegatedAttestationResult as SubmitDelegatedAttestationResult, index_TxEncodedValueProof as TxEncodedValueProof, index_TxInteractionProof as TxInteractionProof, index_VerifyAttestationParams as VerifyAttestationParams, index_VerifyAttestationResult as VerifyAttestationResult, index_VerifyDidJsonControllerDidOptions as VerifyDidJsonControllerDidOptions, index_VerifyDidPkhOwnershipParams as VerifyDidPkhOwnershipParams, index_VerifyDidWebOwnershipParams as VerifyDidWebOwnershipParams, index_VerifyDnsTxtControllerDidOptions as VerifyDnsTxtControllerDidOptions, index_VerifyProofParams as VerifyProofParams, index_VerifyProofResult as VerifyProofResult, index_VerifySubjectOwnershipParams as VerifySubjectOwnershipParams, index_W3CKeyPurpose as W3CKeyPurpose, type index_X402Eip712Artifact as X402Eip712Artifact, type index_X402JwsArtifact as X402JwsArtifact, type index_X402JwsVerifyOptions as X402JwsVerifyOptions, index_X402OfferProof as X402OfferProof, index_X402ReceiptProof as X402ReceiptProof, index_buildDelegatedAttestationTypedData as buildDelegatedAttestationTypedData, index_buildDelegatedTypedDataFromEncoded as buildDelegatedTypedDataFromEncoded, index_buildDnsTxtRecord as buildDnsTxtRecord, index_buildEip712Domain as buildEip712Domain, index_calculateAverageUserReviewRating as calculateAverageUserReviewRating, index_calculateTransferAmount as calculateTransferAmount, index_calculateTransferAmountFromAddresses as calculateTransferAmountFromAddresses, index_callControllerWitness as callControllerWitness, index_constructSeed as constructSeed, index_createEvidencePointerProof as createEvidencePointerProof, index_createPopEip712Proof as createPopEip712Proof, index_createPopJwsProof as createPopJwsProof, index_createTxEncodedValueProof as createTxEncodedValueProof, index_createTxInteractionProof as createTxInteractionProof, index_createX402OfferProof as createX402OfferProof, index_createX402ReceiptProof as createX402ReceiptProof, index_decodeAttestationData as decodeAttestationData, index_deduplicateReviews as deduplicateReviews, index_discoverContractOwner as discoverContractOwner, index_discoverControllingWalletDid as discoverControllingWalletDid, index_encodeAttestationData as encodeAttestationData, index_extractEvmAddressesFromDidDocument as extractEvmAddressesFromDidDocument, index_extractExpirationTime as extractExpirationTime, index_extractJwksFromDidDocument as extractJwksFromDidDocument, index_fetchDidDocument as fetchDidDocument, index_formatSchemaUid as formatSchemaUid, index_formatTransferAmount as formatTransferAmount, index_getAttestation as getAttestation, index_getAttestationsByAttester as getAttestationsByAttester, index_getAttestationsForDid as getAttestationsForDid, index_getChainConstants as getChainConstants, index_getControllerAuthorization as getControllerAuthorization, index_getExplorerAddressUrl as getExplorerAddressUrl, index_getExplorerTxUrl as getExplorerTxUrl, index_getLatestAttestations as getLatestAttestations, index_getMajorVersion as getMajorVersion, index_getOmaTrustProofEip712Types as getOmaTrustProofEip712Types, index_getSchemaDetails as getSchemaDetails, index_getSupportedChainIds as getSupportedChainIds, index_hashSeed as hashSeed, index_isChainSupported as isChainSupported, index_listAttestations as listAttestations, index_normalizeSchema as normalizeSchema, index_parseDnsTxtRecord as parseDnsTxtRecord, index_prepareDelegatedAttestation as prepareDelegatedAttestation, index_readOwnerFromContract as readOwnerFromContract, index_requestControllerWitness as requestControllerWitness, index_revokeAttestation as revokeAttestation, index_schemaToString as schemaToString, index_splitSignature as splitSignature, index_submitAttestation as submitAttestation, index_submitDelegatedAttestation as submitDelegatedAttestation, index_validateAttestationData as validateAttestationData, index_verifyAttestation as verifyAttestation, index_verifyDidDocumentControllerDid as verifyDidDocumentControllerDid, index_verifyDidJsonControllerDid as verifyDidJsonControllerDid, index_verifyDidPkhOwnership as verifyDidPkhOwnership, index_verifyDidWebOwnership as verifyDidWebOwnership, index_verifyDnsTxtControllerDid as verifyDnsTxtControllerDid, index_verifyEip712Signature as verifyEip712Signature, index_verifyProof as verifyProof, index_verifySchemaExists as verifySchemaExists, index_verifySubjectOwnership as verifySubjectOwnership, index_verifyTransferProof as verifyTransferProof, index_verifyX402Eip712Artifact as verifyX402Eip712Artifact, index_verifyX402Eip712Offer as verifyX402Eip712Offer, index_verifyX402Eip712Receipt as verifyX402Eip712Receipt, index_verifyX402JwsArtifact as verifyX402JwsArtifact, index_verifyX402JwsOffer as verifyX402JwsOffer, index_verifyX402JwsReceipt as verifyX402JwsReceipt };
327
+ }
328
+
329
+ export { type Eip712VerificationFailure as E, type X402Eip712Artifact as X, type Eip712VerificationResult as a, type X402JwsArtifact as b, type X402JwsVerifyOptions as c, verifyX402Eip712Artifact as d, verifyX402Eip712Offer as e, verifyX402Eip712Receipt as f, getControllerAuthorization as g, verifyX402JwsArtifact as h, index as i, verifyX402JwsOffer as j, verifyX402JwsReceipt as k, verifyDnsTxtControllerDid as v };
@@ -0,0 +1,235 @@
1
+ import { A as AuthorizationMetadata, J as JwkValidationResult, a as JwsVerificationError, b as JwsVerificationFailure, c as JwsVerificationResult, P as PublicJwk, d as PublicKeySource, R as ResolveKeyOptions, e as ResolvedControllerDid, f as ResolvedPublicKey, g as computeJwkThumbprint, h as didJwkToJwk, i as extractAuthorizationMetadata, j as formatJktValue, k as jwkToDidJwk, p as publicJwkEquals, r as resolveDidUrlToControllerDid, l as resolveDidUrlToPublicKey, v as validatePublicJwk } from './types-dpYxRq8N.js';
2
+
3
+ type Hex$1 = `0x${string}`;
4
+ type Did = string;
5
+ declare function isValidDid(did: string): boolean;
6
+ declare function extractDidMethod(did: Did): string | null;
7
+ declare function extractDidIdentifier(did: Did): string | null;
8
+ declare function normalizeDomain(domain: string): string;
9
+ declare function normalizeDidWeb(input: string): Did;
10
+ declare function normalizeDidPkh(input: string): Did;
11
+ declare function normalizeDidHandle(input: string): Did;
12
+ declare function normalizeDidKey(input: string): Did;
13
+ declare function normalizeDid(input: string): Did;
14
+ declare function computeDidHash(did: Did): Hex$1;
15
+ declare function computeDidAddress(didHash: Hex$1): Hex$1;
16
+ declare function didToAddress(did: Did): Hex$1;
17
+ declare function validateDidAddress(did: Did, address: Hex$1): boolean;
18
+ declare function buildDidWeb(domain: string): Did;
19
+ declare function buildDidPkh(namespace: string, chainId: string | number, address: string): Did;
20
+ declare function buildEvmDidPkh(chainId: string | number, address: string): Did;
21
+ declare function buildDidPkhFromCaip10(caip10: string): Did;
22
+ declare function getChainIdFromDidPkh(did: Did): string | null;
23
+ declare function getAddressFromDidPkh(did: Did): string | null;
24
+ declare function getNamespaceFromDidPkh(did: Did): string | null;
25
+ declare function isEvmDidPkh(did: Did): boolean;
26
+ declare function getDomainFromDidWeb(did: Did): string | null;
27
+ /**
28
+ * Extract an EVM address from a DID or address-like identifier.
29
+ *
30
+ * Supports:
31
+ * - did:pkh (extracts the address portion — currently EVM only)
32
+ * - did:ethr (extracts the Ethereum address)
33
+ * - CAIP-10 format (e.g. eip155:1:0xABC)
34
+ * - Raw EVM addresses (0x + 40 hex chars)
35
+ *
36
+ * NOTE: This function is EVM-specific. It does not support non-EVM chains
37
+ * (e.g. Solana, Cosmos). Non-EVM did:pkh identifiers will throw.
38
+ * A future version may generalize to support multiple chain families.
39
+ *
40
+ * @param identifier - A DID, CAIP-10 string, or raw EVM address
41
+ * @returns The checksummed EVM address
42
+ * @throws OmaTrustError if the identifier cannot be resolved to an EVM address
43
+ */
44
+ declare function extractAddressFromDid(identifier: string): string;
45
+ /** Result of private-key DID validation */
46
+ interface PrivateKeyDidValidation {
47
+ valid: boolean;
48
+ method: "pkh" | "jwk" | null;
49
+ error?: string;
50
+ }
51
+ /**
52
+ * Check if a DID uses a private-key method (can sign transactions/messages).
53
+ * Quick boolean check — use validatePrivateKeyDid() for detailed errors.
54
+ */
55
+ declare function isPrivateKeyDid(did: string): boolean;
56
+ /**
57
+ * Validate that a DID is a well-formed private-key DID.
58
+ * Returns detailed validation result with method identification and error messages.
59
+ *
60
+ * Supported methods:
61
+ * - did:pkh — CAIP-10 blockchain account (deep validation for eip155)
62
+ * - did:jwk — JSON Web Key (structural validation)
63
+ */
64
+ declare function validatePrivateKeyDid(did: string): PrivateKeyDidValidation;
65
+ /**
66
+ * Normalize a did:jwk DID.
67
+ * Validates structure and returns the DID unchanged (did:jwk is already canonical).
68
+ */
69
+ declare function normalizeDidJwk(input: string): Did;
70
+
71
+ /**
72
+ * DID URL Parsing — Phase 1
73
+ *
74
+ * Parses DID URLs (e.g. did:web:api.example.com#key-1) into their components.
75
+ * DID URLs are mutable key references / lookup handles, not durable controller DIDs.
76
+ */
77
+ /** Parsed DID URL components */
78
+ interface ParsedDidUrl {
79
+ /** The original full DID URL */
80
+ didUrl: string;
81
+ /** The base DID (without fragment) */
82
+ did: string;
83
+ /** The fragment identifier (without the '#'), or null if no fragment */
84
+ fragment: string | null;
85
+ }
86
+ /**
87
+ * Parse a DID URL into its components.
88
+ *
89
+ * A DID URL may include a fragment (e.g. `did:web:api.example.com#key-1`).
90
+ * The fragment identifies a verification method, key reference, or other
91
+ * resource under the DID.
92
+ *
93
+ * DID URLs are mutable key references. They should not be used as durable
94
+ * controller DIDs. Use `resolveDidUrlControllerDid()` to derive a durable
95
+ * `did:jwk` from a DID URL.
96
+ *
97
+ * @param input - A DID URL string
98
+ * @returns Parsed components: didUrl, did, fragment
99
+ * @throws OmaTrustError with code INVALID_DID_URL if input is malformed
100
+ */
101
+ declare function parseDidUrl(input: string): ParsedDidUrl;
102
+ /**
103
+ * Check whether a string is a DID URL (contains a fragment).
104
+ * Useful for guards that need to reject DID URLs where a bare DID is expected.
105
+ */
106
+ declare function isDidUrl(input: string): boolean;
107
+ /**
108
+ * Assert that a string is a bare DID (not a DID URL with a fragment).
109
+ * Throws if the input contains a fragment.
110
+ *
111
+ * Use this in functions that expect a subject DID and must reject DID URLs.
112
+ */
113
+ declare function assertBareDid(input: string, paramName?: string): void;
114
+
115
+ /**
116
+ * Controller ID Comparison
117
+ *
118
+ * Determines whether two controller DIDs refer to the same entity.
119
+ * Handles DID normalization and EVM address-based fallback (chain-agnostic).
120
+ */
121
+ /**
122
+ * Check if two controller DIDs refer to the same entity.
123
+ *
124
+ * Matching strategies (tried in order):
125
+ * 1. Exact normalized DID string match
126
+ * 2. EVM address match (chain-agnostic): if both DIDs resolve to the same
127
+ * EVM address, they match regardless of chain ID. This handles cases like
128
+ * did:pkh:eip155:1:0xABC matching did:pkh:eip155:137:0xABC.
129
+ * 3. JWK material match: if both are did:jwk, compare the decoded public key
130
+ * material directly (handles non-canonical encoding differences).
131
+ *
132
+ * @param a - First controller DID
133
+ * @param b - Second controller DID
134
+ * @returns true if both DIDs refer to the same controller
135
+ */
136
+ declare function isSameControllerId(a: string, b: string): boolean;
137
+ /**
138
+ * Extract an EVM address from a controller DID, if possible.
139
+ * Returns null for non-EVM controllers (did:jwk, non-eip155 did:pkh, etc.)
140
+ */
141
+ declare function extractControllerEvmAddress(controllerDid: string): string | null;
142
+
143
+ type Caip10 = string;
144
+ type ParsedCaip10 = {
145
+ namespace: string;
146
+ reference: string;
147
+ address: string;
148
+ };
149
+ type ParsedCaip2 = {
150
+ namespace: string;
151
+ reference: string;
152
+ };
153
+ declare function parseCaip10(input: string): ParsedCaip10;
154
+ declare function buildCaip10(namespace: string, reference: string, address: string): Caip10;
155
+ declare function normalizeCaip10(input: string): Caip10;
156
+ declare function buildCaip2(namespace: string, reference: string): string;
157
+ declare function parseCaip2(caip2: string): ParsedCaip2;
158
+
159
+ type Hex = `0x${string}`;
160
+ declare function canonicalizeJson(obj: unknown): string;
161
+ declare function canonicalizeForHash(obj: unknown): {
162
+ jcsJson: string;
163
+ hash: Hex;
164
+ };
165
+ declare function hashCanonicalizedJson(obj: unknown, algorithm: "keccak256" | "sha256"): Hex;
166
+
167
+ declare const index_AuthorizationMetadata: typeof AuthorizationMetadata;
168
+ type index_Caip10 = Caip10;
169
+ type index_Did = Did;
170
+ declare const index_JwkValidationResult: typeof JwkValidationResult;
171
+ declare const index_JwsVerificationError: typeof JwsVerificationError;
172
+ declare const index_JwsVerificationFailure: typeof JwsVerificationFailure;
173
+ declare const index_JwsVerificationResult: typeof JwsVerificationResult;
174
+ type index_ParsedCaip10 = ParsedCaip10;
175
+ type index_ParsedCaip2 = ParsedCaip2;
176
+ type index_ParsedDidUrl = ParsedDidUrl;
177
+ type index_PrivateKeyDidValidation = PrivateKeyDidValidation;
178
+ declare const index_PublicJwk: typeof PublicJwk;
179
+ declare const index_PublicKeySource: typeof PublicKeySource;
180
+ declare const index_ResolveKeyOptions: typeof ResolveKeyOptions;
181
+ declare const index_ResolvedControllerDid: typeof ResolvedControllerDid;
182
+ declare const index_ResolvedPublicKey: typeof ResolvedPublicKey;
183
+ declare const index_assertBareDid: typeof assertBareDid;
184
+ declare const index_buildCaip10: typeof buildCaip10;
185
+ declare const index_buildCaip2: typeof buildCaip2;
186
+ declare const index_buildDidPkh: typeof buildDidPkh;
187
+ declare const index_buildDidPkhFromCaip10: typeof buildDidPkhFromCaip10;
188
+ declare const index_buildDidWeb: typeof buildDidWeb;
189
+ declare const index_buildEvmDidPkh: typeof buildEvmDidPkh;
190
+ declare const index_canonicalizeForHash: typeof canonicalizeForHash;
191
+ declare const index_canonicalizeJson: typeof canonicalizeJson;
192
+ declare const index_computeDidAddress: typeof computeDidAddress;
193
+ declare const index_computeDidHash: typeof computeDidHash;
194
+ declare const index_computeJwkThumbprint: typeof computeJwkThumbprint;
195
+ declare const index_didJwkToJwk: typeof didJwkToJwk;
196
+ declare const index_didToAddress: typeof didToAddress;
197
+ declare const index_extractAddressFromDid: typeof extractAddressFromDid;
198
+ declare const index_extractAuthorizationMetadata: typeof extractAuthorizationMetadata;
199
+ declare const index_extractControllerEvmAddress: typeof extractControllerEvmAddress;
200
+ declare const index_extractDidIdentifier: typeof extractDidIdentifier;
201
+ declare const index_extractDidMethod: typeof extractDidMethod;
202
+ declare const index_formatJktValue: typeof formatJktValue;
203
+ declare const index_getAddressFromDidPkh: typeof getAddressFromDidPkh;
204
+ declare const index_getChainIdFromDidPkh: typeof getChainIdFromDidPkh;
205
+ declare const index_getDomainFromDidWeb: typeof getDomainFromDidWeb;
206
+ declare const index_getNamespaceFromDidPkh: typeof getNamespaceFromDidPkh;
207
+ declare const index_hashCanonicalizedJson: typeof hashCanonicalizedJson;
208
+ declare const index_isDidUrl: typeof isDidUrl;
209
+ declare const index_isEvmDidPkh: typeof isEvmDidPkh;
210
+ declare const index_isPrivateKeyDid: typeof isPrivateKeyDid;
211
+ declare const index_isSameControllerId: typeof isSameControllerId;
212
+ declare const index_isValidDid: typeof isValidDid;
213
+ declare const index_jwkToDidJwk: typeof jwkToDidJwk;
214
+ declare const index_normalizeCaip10: typeof normalizeCaip10;
215
+ declare const index_normalizeDid: typeof normalizeDid;
216
+ declare const index_normalizeDidHandle: typeof normalizeDidHandle;
217
+ declare const index_normalizeDidJwk: typeof normalizeDidJwk;
218
+ declare const index_normalizeDidKey: typeof normalizeDidKey;
219
+ declare const index_normalizeDidPkh: typeof normalizeDidPkh;
220
+ declare const index_normalizeDidWeb: typeof normalizeDidWeb;
221
+ declare const index_normalizeDomain: typeof normalizeDomain;
222
+ declare const index_parseCaip10: typeof parseCaip10;
223
+ declare const index_parseCaip2: typeof parseCaip2;
224
+ declare const index_parseDidUrl: typeof parseDidUrl;
225
+ declare const index_publicJwkEquals: typeof publicJwkEquals;
226
+ declare const index_resolveDidUrlToControllerDid: typeof resolveDidUrlToControllerDid;
227
+ declare const index_resolveDidUrlToPublicKey: typeof resolveDidUrlToPublicKey;
228
+ declare const index_validateDidAddress: typeof validateDidAddress;
229
+ declare const index_validatePrivateKeyDid: typeof validatePrivateKeyDid;
230
+ declare const index_validatePublicJwk: typeof validatePublicJwk;
231
+ declare namespace index {
232
+ export { index_AuthorizationMetadata as AuthorizationMetadata, type index_Caip10 as Caip10, type index_Did as Did, type Hex$1 as Hex, index_JwkValidationResult as JwkValidationResult, index_JwsVerificationError as JwsVerificationError, index_JwsVerificationFailure as JwsVerificationFailure, index_JwsVerificationResult as JwsVerificationResult, type index_ParsedCaip10 as ParsedCaip10, type index_ParsedCaip2 as ParsedCaip2, type index_ParsedDidUrl as ParsedDidUrl, type index_PrivateKeyDidValidation as PrivateKeyDidValidation, index_PublicJwk as PublicJwk, index_PublicKeySource as PublicKeySource, index_ResolveKeyOptions as ResolveKeyOptions, index_ResolvedControllerDid as ResolvedControllerDid, index_ResolvedPublicKey as ResolvedPublicKey, index_assertBareDid as assertBareDid, index_buildCaip10 as buildCaip10, index_buildCaip2 as buildCaip2, index_buildDidPkh as buildDidPkh, index_buildDidPkhFromCaip10 as buildDidPkhFromCaip10, index_buildDidWeb as buildDidWeb, index_buildEvmDidPkh as buildEvmDidPkh, index_canonicalizeForHash as canonicalizeForHash, index_canonicalizeJson as canonicalizeJson, index_computeDidAddress as computeDidAddress, index_computeDidHash as computeDidHash, index_computeJwkThumbprint as computeJwkThumbprint, index_didJwkToJwk as didJwkToJwk, index_didToAddress as didToAddress, index_extractAddressFromDid as extractAddressFromDid, index_extractAuthorizationMetadata as extractAuthorizationMetadata, index_extractControllerEvmAddress as extractControllerEvmAddress, index_extractDidIdentifier as extractDidIdentifier, index_extractDidMethod as extractDidMethod, index_formatJktValue as formatJktValue, index_getAddressFromDidPkh as getAddressFromDidPkh, index_getChainIdFromDidPkh as getChainIdFromDidPkh, index_getDomainFromDidWeb as getDomainFromDidWeb, index_getNamespaceFromDidPkh as getNamespaceFromDidPkh, index_hashCanonicalizedJson as hashCanonicalizedJson, index_isDidUrl as isDidUrl, index_isEvmDidPkh as isEvmDidPkh, index_isPrivateKeyDid as isPrivateKeyDid, index_isSameControllerId as isSameControllerId, index_isValidDid as isValidDid, index_jwkToDidJwk as jwkToDidJwk, index_normalizeCaip10 as normalizeCaip10, index_normalizeDid as normalizeDid, index_normalizeDidHandle as normalizeDidHandle, index_normalizeDidJwk as normalizeDidJwk, index_normalizeDidKey as normalizeDidKey, index_normalizeDidPkh as normalizeDidPkh, index_normalizeDidWeb as normalizeDidWeb, index_normalizeDomain as normalizeDomain, index_parseCaip10 as parseCaip10, index_parseCaip2 as parseCaip2, index_parseDidUrl as parseDidUrl, index_publicJwkEquals as publicJwkEquals, index_resolveDidUrlToControllerDid as resolveDidUrlToControllerDid, index_resolveDidUrlToPublicKey as resolveDidUrlToPublicKey, index_validateDidAddress as validateDidAddress, index_validatePrivateKeyDid as validatePrivateKeyDid, index_validatePublicJwk as validatePublicJwk };
233
+ }
234
+
235
+ export { isEvmDidPkh as A, isPrivateKeyDid as B, type Caip10 as C, type Did as D, isSameControllerId as E, isValidDid as F, normalizeCaip10 as G, type Hex$1 as H, normalizeDid as I, normalizeDidHandle as J, normalizeDidJwk as K, normalizeDidKey as L, normalizeDidPkh as M, normalizeDidWeb as N, normalizeDomain as O, type ParsedCaip10 as P, parseCaip10 as Q, parseCaip2 as R, parseDidUrl as S, validateDidAddress as T, validatePrivateKeyDid as U, type ParsedCaip2 as a, type ParsedDidUrl as b, type PrivateKeyDidValidation as c, assertBareDid as d, buildCaip10 as e, buildCaip2 as f, buildDidPkh as g, buildDidPkhFromCaip10 as h, index as i, buildDidWeb as j, buildEvmDidPkh as k, canonicalizeForHash as l, canonicalizeJson as m, computeDidAddress as n, computeDidHash as o, didToAddress as p, extractAddressFromDid as q, extractControllerEvmAddress as r, extractDidIdentifier as s, extractDidMethod as t, getAddressFromDidPkh as u, getChainIdFromDidPkh as v, getDomainFromDidWeb as w, getNamespaceFromDidPkh as x, hashCanonicalizedJson as y, isDidUrl as z };