@oma3/omatrust 0.1.0-alpha.10 → 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 (43) hide show
  1. package/dist/identity/index.cjs +543 -0
  2. package/dist/identity/index.cjs.map +1 -1
  3. package/dist/identity/index.d.cts +2 -1
  4. package/dist/identity/index.d.ts +2 -1
  5. package/dist/identity/index.js +527 -1
  6. package/dist/identity/index.js.map +1 -1
  7. package/dist/index-BOvk-7Ku.d.cts +235 -0
  8. package/dist/index-C2w5EvFH.d.ts +329 -0
  9. package/dist/index-QueRiudB.d.cts +329 -0
  10. package/dist/index-R78TpAhN.d.ts +235 -0
  11. package/dist/index.cjs +1475 -165
  12. package/dist/index.cjs.map +1 -1
  13. package/dist/index.d.cts +4 -3
  14. package/dist/index.d.ts +4 -3
  15. package/dist/index.js +1476 -166
  16. package/dist/index.js.map +1 -1
  17. package/dist/reputation/index.browser.cjs +943 -66
  18. package/dist/reputation/index.browser.cjs.map +1 -1
  19. package/dist/reputation/index.browser.d.cts +2 -2
  20. package/dist/reputation/index.browser.d.ts +2 -2
  21. package/dist/reputation/index.browser.js +941 -66
  22. package/dist/reputation/index.browser.js.map +1 -1
  23. package/dist/reputation/index.cjs +1393 -217
  24. package/dist/reputation/index.cjs.map +1 -1
  25. package/dist/reputation/index.d.cts +3 -2
  26. package/dist/reputation/index.d.ts +3 -2
  27. package/dist/reputation/index.js +1378 -217
  28. package/dist/reputation/index.js.map +1 -1
  29. package/dist/{subject-ownership-CXvzEjpH.d.cts → subject-ownership-B7cFlm8c.d.cts} +256 -26
  30. package/dist/{subject-ownership-CXvzEjpH.d.ts → subject-ownership-B7cFlm8c.d.ts} +256 -26
  31. package/dist/types-dpYxRq8N.d.cts +281 -0
  32. package/dist/types-dpYxRq8N.d.ts +281 -0
  33. package/dist/widgets/index.cjs +70 -27
  34. package/dist/widgets/index.cjs.map +1 -1
  35. package/dist/widgets/index.d.cts +42 -18
  36. package/dist/widgets/index.d.ts +42 -18
  37. package/dist/widgets/index.js +67 -26
  38. package/dist/widgets/index.js.map +1 -1
  39. package/package.json +3 -2
  40. package/dist/index-B9KW02US.d.cts +0 -119
  41. package/dist/index-DXrwBex9.d.ts +0 -119
  42. package/dist/index-QZDExA4I.d.cts +0 -90
  43. package/dist/index-QZDExA4I.d.ts +0 -90
@@ -1,119 +0,0 @@
1
- import { D as Did, A as AttestationQueryResult, a as AttestationValidationError, B as BuildDelegatedTypedDataFromEncodedParams, C as CallControllerWitnessParams, b as CallControllerWitnessResult, c as ChainConstants, d as CreatePopEip712ProofParams, e as CreatePopJwsProofParams, E as EvidencePointerProof, f as EvmOwnershipProvider, G as GetAttestationParams, g as GetAttestationsByAttesterParams, h as GetLatestAttestationsParams, H as Hex, L as ListAttestationsParams, P as PopEip712Proof, i as PopJwsProof, j as PrepareDelegatedAttestationParams, k as PrepareDelegatedAttestationResult, l as ProofPurpose, m as ProofType, n as ProofWrapper, R as RevokeAttestationParams, o as RevokeAttestationResult, S as SchemaField, p as SubjectOwnershipVerificationMethod, q as SubjectOwnershipVerificationResult, r as SubmitAttestationParams, s as SubmitAttestationResult, t as SubmitDelegatedAttestationParams, u as SubmitDelegatedAttestationResult, T as TxEncodedValueProof, v as TxInteractionProof, V as VerifyAttestationParams, w as VerifyAttestationResult, x as VerifyDidJsonControllerDidOptions, y as VerifyDidPkhOwnershipParams, z as VerifyDidWebOwnershipParams, F as VerifyProofParams, I as VerifyProofResult, J as VerifySubjectOwnershipParams, X as X402OfferProof, K as X402ReceiptProof, M as buildDelegatedAttestationTypedData, N as buildDelegatedTypedDataFromEncoded, O as buildDnsTxtRecord, Q as buildEip712Domain, U as calculateAverageUserReviewRating, W as calculateTransferAmount, Y as calculateTransferAmountFromAddresses, Z as callControllerWitness, _ as constructSeed, $ as createEvidencePointerProof, a0 as createPopEip712Proof, a1 as createPopJwsProof, a2 as createTxEncodedValueProof, a3 as createTxInteractionProof, a4 as createX402OfferProof, a5 as createX402ReceiptProof, a6 as decodeAttestationData, a7 as deduplicateReviews, a8 as encodeAttestationData, a9 as extractAddressesFromDidDocument, aa as extractExpirationTime, ab as fetchDidDocument, ac as formatSchemaUid, ad as formatTransferAmount, ae as getAttestation, af as getAttestationsByAttester, ag as getAttestationsForDid, ah as getChainConstants, ai as getExplorerAddressUrl, aj as getExplorerTxUrl, ak as getLatestAttestations, al as getMajorVersion, am as getOmaTrustProofEip712Types, an as getSchemaDetails, ao as getSupportedChainIds, ap as hashSeed, aq as isChainSupported, ar as listAttestations, as as normalizeSchema, at as parseDnsTxtRecord, au as prepareDelegatedAttestation, av as revokeAttestation, aw as schemaToString, ax as splitSignature, ay as submitAttestation, az as submitDelegatedAttestation, aA as validateAttestationData, aB as verifyAttestation, aC as verifyDidDocumentControllerDid, aD as verifyDidJsonControllerDid, aE as verifyDidPkhOwnership, aF as verifyDidWebOwnership, aG as verifyEip712Signature, aH as verifyProof, aI as verifySchemaExists, aJ as verifySubjectOwnership } from './subject-ownership-CXvzEjpH.js';
2
-
3
- interface VerifyDnsTxtControllerDidOptions {
4
- resolveTxt?: (host: string) => Promise<string[][]>;
5
- recordPrefix?: string;
6
- }
7
- declare function verifyDnsTxtControllerDid(domain: string, expectedControllerDid: Did, options?: VerifyDnsTxtControllerDidOptions): Promise<{
8
- valid: boolean;
9
- record?: string;
10
- reason?: string;
11
- }>;
12
-
13
- declare const index_AttestationQueryResult: typeof AttestationQueryResult;
14
- declare const index_AttestationValidationError: typeof AttestationValidationError;
15
- declare const index_BuildDelegatedTypedDataFromEncodedParams: typeof BuildDelegatedTypedDataFromEncodedParams;
16
- declare const index_CallControllerWitnessParams: typeof CallControllerWitnessParams;
17
- declare const index_CallControllerWitnessResult: typeof CallControllerWitnessResult;
18
- declare const index_ChainConstants: typeof ChainConstants;
19
- declare const index_CreatePopEip712ProofParams: typeof CreatePopEip712ProofParams;
20
- declare const index_CreatePopJwsProofParams: typeof CreatePopJwsProofParams;
21
- declare const index_Did: typeof Did;
22
- declare const index_EvidencePointerProof: typeof EvidencePointerProof;
23
- declare const index_EvmOwnershipProvider: typeof EvmOwnershipProvider;
24
- declare const index_GetAttestationParams: typeof GetAttestationParams;
25
- declare const index_GetAttestationsByAttesterParams: typeof GetAttestationsByAttesterParams;
26
- declare const index_GetLatestAttestationsParams: typeof GetLatestAttestationsParams;
27
- declare const index_Hex: typeof Hex;
28
- declare const index_ListAttestationsParams: typeof ListAttestationsParams;
29
- declare const index_PopEip712Proof: typeof PopEip712Proof;
30
- declare const index_PopJwsProof: typeof PopJwsProof;
31
- declare const index_PrepareDelegatedAttestationParams: typeof PrepareDelegatedAttestationParams;
32
- declare const index_PrepareDelegatedAttestationResult: typeof PrepareDelegatedAttestationResult;
33
- declare const index_ProofPurpose: typeof ProofPurpose;
34
- declare const index_ProofType: typeof ProofType;
35
- declare const index_ProofWrapper: typeof ProofWrapper;
36
- declare const index_RevokeAttestationParams: typeof RevokeAttestationParams;
37
- declare const index_RevokeAttestationResult: typeof RevokeAttestationResult;
38
- declare const index_SchemaField: typeof SchemaField;
39
- declare const index_SubjectOwnershipVerificationMethod: typeof SubjectOwnershipVerificationMethod;
40
- declare const index_SubjectOwnershipVerificationResult: typeof SubjectOwnershipVerificationResult;
41
- declare const index_SubmitAttestationParams: typeof SubmitAttestationParams;
42
- declare const index_SubmitAttestationResult: typeof SubmitAttestationResult;
43
- declare const index_SubmitDelegatedAttestationParams: typeof SubmitDelegatedAttestationParams;
44
- declare const index_SubmitDelegatedAttestationResult: typeof SubmitDelegatedAttestationResult;
45
- declare const index_TxEncodedValueProof: typeof TxEncodedValueProof;
46
- declare const index_TxInteractionProof: typeof TxInteractionProof;
47
- declare const index_VerifyAttestationParams: typeof VerifyAttestationParams;
48
- declare const index_VerifyAttestationResult: typeof VerifyAttestationResult;
49
- declare const index_VerifyDidJsonControllerDidOptions: typeof VerifyDidJsonControllerDidOptions;
50
- declare const index_VerifyDidPkhOwnershipParams: typeof VerifyDidPkhOwnershipParams;
51
- declare const index_VerifyDidWebOwnershipParams: typeof VerifyDidWebOwnershipParams;
52
- type index_VerifyDnsTxtControllerDidOptions = VerifyDnsTxtControllerDidOptions;
53
- declare const index_VerifyProofParams: typeof VerifyProofParams;
54
- declare const index_VerifyProofResult: typeof VerifyProofResult;
55
- declare const index_VerifySubjectOwnershipParams: typeof VerifySubjectOwnershipParams;
56
- declare const index_X402OfferProof: typeof X402OfferProof;
57
- declare const index_X402ReceiptProof: typeof X402ReceiptProof;
58
- declare const index_buildDelegatedAttestationTypedData: typeof buildDelegatedAttestationTypedData;
59
- declare const index_buildDelegatedTypedDataFromEncoded: typeof buildDelegatedTypedDataFromEncoded;
60
- declare const index_buildDnsTxtRecord: typeof buildDnsTxtRecord;
61
- declare const index_buildEip712Domain: typeof buildEip712Domain;
62
- declare const index_calculateAverageUserReviewRating: typeof calculateAverageUserReviewRating;
63
- declare const index_calculateTransferAmount: typeof calculateTransferAmount;
64
- declare const index_calculateTransferAmountFromAddresses: typeof calculateTransferAmountFromAddresses;
65
- declare const index_callControllerWitness: typeof callControllerWitness;
66
- declare const index_constructSeed: typeof constructSeed;
67
- declare const index_createEvidencePointerProof: typeof createEvidencePointerProof;
68
- declare const index_createPopEip712Proof: typeof createPopEip712Proof;
69
- declare const index_createPopJwsProof: typeof createPopJwsProof;
70
- declare const index_createTxEncodedValueProof: typeof createTxEncodedValueProof;
71
- declare const index_createTxInteractionProof: typeof createTxInteractionProof;
72
- declare const index_createX402OfferProof: typeof createX402OfferProof;
73
- declare const index_createX402ReceiptProof: typeof createX402ReceiptProof;
74
- declare const index_decodeAttestationData: typeof decodeAttestationData;
75
- declare const index_deduplicateReviews: typeof deduplicateReviews;
76
- declare const index_encodeAttestationData: typeof encodeAttestationData;
77
- declare const index_extractAddressesFromDidDocument: typeof extractAddressesFromDidDocument;
78
- declare const index_extractExpirationTime: typeof extractExpirationTime;
79
- declare const index_fetchDidDocument: typeof fetchDidDocument;
80
- declare const index_formatSchemaUid: typeof formatSchemaUid;
81
- declare const index_formatTransferAmount: typeof formatTransferAmount;
82
- declare const index_getAttestation: typeof getAttestation;
83
- declare const index_getAttestationsByAttester: typeof getAttestationsByAttester;
84
- declare const index_getAttestationsForDid: typeof getAttestationsForDid;
85
- declare const index_getChainConstants: typeof getChainConstants;
86
- declare const index_getExplorerAddressUrl: typeof getExplorerAddressUrl;
87
- declare const index_getExplorerTxUrl: typeof getExplorerTxUrl;
88
- declare const index_getLatestAttestations: typeof getLatestAttestations;
89
- declare const index_getMajorVersion: typeof getMajorVersion;
90
- declare const index_getOmaTrustProofEip712Types: typeof getOmaTrustProofEip712Types;
91
- declare const index_getSchemaDetails: typeof getSchemaDetails;
92
- declare const index_getSupportedChainIds: typeof getSupportedChainIds;
93
- declare const index_hashSeed: typeof hashSeed;
94
- declare const index_isChainSupported: typeof isChainSupported;
95
- declare const index_listAttestations: typeof listAttestations;
96
- declare const index_normalizeSchema: typeof normalizeSchema;
97
- declare const index_parseDnsTxtRecord: typeof parseDnsTxtRecord;
98
- declare const index_prepareDelegatedAttestation: typeof prepareDelegatedAttestation;
99
- declare const index_revokeAttestation: typeof revokeAttestation;
100
- declare const index_schemaToString: typeof schemaToString;
101
- declare const index_splitSignature: typeof splitSignature;
102
- declare const index_submitAttestation: typeof submitAttestation;
103
- declare const index_submitDelegatedAttestation: typeof submitDelegatedAttestation;
104
- declare const index_validateAttestationData: typeof validateAttestationData;
105
- declare const index_verifyAttestation: typeof verifyAttestation;
106
- declare const index_verifyDidDocumentControllerDid: typeof verifyDidDocumentControllerDid;
107
- declare const index_verifyDidJsonControllerDid: typeof verifyDidJsonControllerDid;
108
- declare const index_verifyDidPkhOwnership: typeof verifyDidPkhOwnership;
109
- declare const index_verifyDidWebOwnership: typeof verifyDidWebOwnership;
110
- declare const index_verifyDnsTxtControllerDid: typeof verifyDnsTxtControllerDid;
111
- declare const index_verifyEip712Signature: typeof verifyEip712Signature;
112
- declare const index_verifyProof: typeof verifyProof;
113
- declare const index_verifySchemaExists: typeof verifySchemaExists;
114
- declare const index_verifySubjectOwnership: typeof verifySubjectOwnership;
115
- declare namespace index {
116
- 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_CreatePopEip712ProofParams as CreatePopEip712ProofParams, index_CreatePopJwsProofParams as CreatePopJwsProofParams, index_Did as Did, index_EvidencePointerProof as EvidencePointerProof, index_EvmOwnershipProvider as EvmOwnershipProvider, index_GetAttestationParams as GetAttestationParams, index_GetAttestationsByAttesterParams as GetAttestationsByAttesterParams, index_GetLatestAttestationsParams as GetLatestAttestationsParams, index_Hex as Hex, index_ListAttestationsParams as ListAttestationsParams, 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_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, type index_VerifyDnsTxtControllerDidOptions as VerifyDnsTxtControllerDidOptions, index_VerifyProofParams as VerifyProofParams, index_VerifyProofResult as VerifyProofResult, index_VerifySubjectOwnershipParams as VerifySubjectOwnershipParams, 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_encodeAttestationData as encodeAttestationData, index_extractAddressesFromDidDocument as extractAddressesFromDidDocument, index_extractExpirationTime as extractExpirationTime, 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_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_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 };
117
- }
118
-
119
- export { type VerifyDnsTxtControllerDidOptions as V, index as i, verifyDnsTxtControllerDid as v };
@@ -1,90 +0,0 @@
1
- type Hex$1 = `0x${string}`;
2
- type Did = string;
3
- declare function isValidDid(did: string): boolean;
4
- declare function extractDidMethod(did: Did): string | null;
5
- declare function extractDidIdentifier(did: Did): string | null;
6
- declare function normalizeDomain(domain: string): string;
7
- declare function normalizeDidWeb(input: string): Did;
8
- declare function normalizeDidPkh(input: string): Did;
9
- declare function normalizeDidHandle(input: string): Did;
10
- declare function normalizeDidKey(input: string): Did;
11
- declare function normalizeDid(input: string): Did;
12
- declare function computeDidHash(did: Did): Hex$1;
13
- declare function computeDidAddress(didHash: Hex$1): Hex$1;
14
- declare function didToAddress(did: Did): Hex$1;
15
- declare function validateDidAddress(did: Did, address: Hex$1): boolean;
16
- declare function buildDidWeb(domain: string): Did;
17
- declare function buildDidPkh(namespace: string, chainId: string | number, address: string): Did;
18
- declare function buildEvmDidPkh(chainId: string | number, address: string): Did;
19
- declare function buildDidPkhFromCaip10(caip10: string): Did;
20
- declare function getChainIdFromDidPkh(did: Did): string | null;
21
- declare function getAddressFromDidPkh(did: Did): string | null;
22
- declare function getNamespaceFromDidPkh(did: Did): string | null;
23
- declare function isEvmDidPkh(did: Did): boolean;
24
- declare function getDomainFromDidWeb(did: Did): string | null;
25
- declare function extractAddressFromDid(identifier: string): string;
26
-
27
- type Caip10 = string;
28
- type ParsedCaip10 = {
29
- namespace: string;
30
- reference: string;
31
- address: string;
32
- };
33
- type ParsedCaip2 = {
34
- namespace: string;
35
- reference: string;
36
- };
37
- declare function parseCaip10(input: string): ParsedCaip10;
38
- declare function buildCaip10(namespace: string, reference: string, address: string): Caip10;
39
- declare function normalizeCaip10(input: string): Caip10;
40
- declare function buildCaip2(namespace: string, reference: string): string;
41
- declare function parseCaip2(caip2: string): ParsedCaip2;
42
-
43
- type Hex = `0x${string}`;
44
- declare function canonicalizeJson(obj: unknown): string;
45
- declare function canonicalizeForHash(obj: unknown): {
46
- jcsJson: string;
47
- hash: Hex;
48
- };
49
- declare function hashCanonicalizedJson(obj: unknown, algorithm: "keccak256" | "sha256"): Hex;
50
-
51
- type index_Caip10 = Caip10;
52
- type index_Did = Did;
53
- type index_ParsedCaip10 = ParsedCaip10;
54
- type index_ParsedCaip2 = ParsedCaip2;
55
- declare const index_buildCaip10: typeof buildCaip10;
56
- declare const index_buildCaip2: typeof buildCaip2;
57
- declare const index_buildDidPkh: typeof buildDidPkh;
58
- declare const index_buildDidPkhFromCaip10: typeof buildDidPkhFromCaip10;
59
- declare const index_buildDidWeb: typeof buildDidWeb;
60
- declare const index_buildEvmDidPkh: typeof buildEvmDidPkh;
61
- declare const index_canonicalizeForHash: typeof canonicalizeForHash;
62
- declare const index_canonicalizeJson: typeof canonicalizeJson;
63
- declare const index_computeDidAddress: typeof computeDidAddress;
64
- declare const index_computeDidHash: typeof computeDidHash;
65
- declare const index_didToAddress: typeof didToAddress;
66
- declare const index_extractAddressFromDid: typeof extractAddressFromDid;
67
- declare const index_extractDidIdentifier: typeof extractDidIdentifier;
68
- declare const index_extractDidMethod: typeof extractDidMethod;
69
- declare const index_getAddressFromDidPkh: typeof getAddressFromDidPkh;
70
- declare const index_getChainIdFromDidPkh: typeof getChainIdFromDidPkh;
71
- declare const index_getDomainFromDidWeb: typeof getDomainFromDidWeb;
72
- declare const index_getNamespaceFromDidPkh: typeof getNamespaceFromDidPkh;
73
- declare const index_hashCanonicalizedJson: typeof hashCanonicalizedJson;
74
- declare const index_isEvmDidPkh: typeof isEvmDidPkh;
75
- declare const index_isValidDid: typeof isValidDid;
76
- declare const index_normalizeCaip10: typeof normalizeCaip10;
77
- declare const index_normalizeDid: typeof normalizeDid;
78
- declare const index_normalizeDidHandle: typeof normalizeDidHandle;
79
- declare const index_normalizeDidKey: typeof normalizeDidKey;
80
- declare const index_normalizeDidPkh: typeof normalizeDidPkh;
81
- declare const index_normalizeDidWeb: typeof normalizeDidWeb;
82
- declare const index_normalizeDomain: typeof normalizeDomain;
83
- declare const index_parseCaip10: typeof parseCaip10;
84
- declare const index_parseCaip2: typeof parseCaip2;
85
- declare const index_validateDidAddress: typeof validateDidAddress;
86
- declare namespace index {
87
- export { type index_Caip10 as Caip10, type index_Did as Did, type Hex$1 as Hex, type index_ParsedCaip10 as ParsedCaip10, type index_ParsedCaip2 as ParsedCaip2, 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_didToAddress as didToAddress, index_extractAddressFromDid as extractAddressFromDid, index_extractDidIdentifier as extractDidIdentifier, index_extractDidMethod as extractDidMethod, index_getAddressFromDidPkh as getAddressFromDidPkh, index_getChainIdFromDidPkh as getChainIdFromDidPkh, index_getDomainFromDidWeb as getDomainFromDidWeb, index_getNamespaceFromDidPkh as getNamespaceFromDidPkh, index_hashCanonicalizedJson as hashCanonicalizedJson, index_isEvmDidPkh as isEvmDidPkh, index_isValidDid as isValidDid, index_normalizeCaip10 as normalizeCaip10, index_normalizeDid as normalizeDid, index_normalizeDidHandle as normalizeDidHandle, 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_validateDidAddress as validateDidAddress };
88
- }
89
-
90
- export { normalizeDidKey as A, normalizeDidPkh as B, type Caip10 as C, type Did as D, normalizeDidWeb as E, normalizeDomain as F, parseCaip10 as G, type Hex$1 as H, parseCaip2 as I, validateDidAddress as J, type ParsedCaip10 as P, type ParsedCaip2 as a, buildCaip10 as b, buildCaip2 as c, buildDidPkh as d, buildDidPkhFromCaip10 as e, buildDidWeb as f, buildEvmDidPkh as g, canonicalizeForHash as h, index as i, canonicalizeJson as j, computeDidAddress as k, computeDidHash as l, didToAddress as m, extractAddressFromDid as n, extractDidIdentifier as o, extractDidMethod as p, getAddressFromDidPkh as q, getChainIdFromDidPkh as r, getDomainFromDidWeb as s, getNamespaceFromDidPkh as t, hashCanonicalizedJson as u, isEvmDidPkh as v, isValidDid as w, normalizeCaip10 as x, normalizeDid as y, normalizeDidHandle as z };
@@ -1,90 +0,0 @@
1
- type Hex$1 = `0x${string}`;
2
- type Did = string;
3
- declare function isValidDid(did: string): boolean;
4
- declare function extractDidMethod(did: Did): string | null;
5
- declare function extractDidIdentifier(did: Did): string | null;
6
- declare function normalizeDomain(domain: string): string;
7
- declare function normalizeDidWeb(input: string): Did;
8
- declare function normalizeDidPkh(input: string): Did;
9
- declare function normalizeDidHandle(input: string): Did;
10
- declare function normalizeDidKey(input: string): Did;
11
- declare function normalizeDid(input: string): Did;
12
- declare function computeDidHash(did: Did): Hex$1;
13
- declare function computeDidAddress(didHash: Hex$1): Hex$1;
14
- declare function didToAddress(did: Did): Hex$1;
15
- declare function validateDidAddress(did: Did, address: Hex$1): boolean;
16
- declare function buildDidWeb(domain: string): Did;
17
- declare function buildDidPkh(namespace: string, chainId: string | number, address: string): Did;
18
- declare function buildEvmDidPkh(chainId: string | number, address: string): Did;
19
- declare function buildDidPkhFromCaip10(caip10: string): Did;
20
- declare function getChainIdFromDidPkh(did: Did): string | null;
21
- declare function getAddressFromDidPkh(did: Did): string | null;
22
- declare function getNamespaceFromDidPkh(did: Did): string | null;
23
- declare function isEvmDidPkh(did: Did): boolean;
24
- declare function getDomainFromDidWeb(did: Did): string | null;
25
- declare function extractAddressFromDid(identifier: string): string;
26
-
27
- type Caip10 = string;
28
- type ParsedCaip10 = {
29
- namespace: string;
30
- reference: string;
31
- address: string;
32
- };
33
- type ParsedCaip2 = {
34
- namespace: string;
35
- reference: string;
36
- };
37
- declare function parseCaip10(input: string): ParsedCaip10;
38
- declare function buildCaip10(namespace: string, reference: string, address: string): Caip10;
39
- declare function normalizeCaip10(input: string): Caip10;
40
- declare function buildCaip2(namespace: string, reference: string): string;
41
- declare function parseCaip2(caip2: string): ParsedCaip2;
42
-
43
- type Hex = `0x${string}`;
44
- declare function canonicalizeJson(obj: unknown): string;
45
- declare function canonicalizeForHash(obj: unknown): {
46
- jcsJson: string;
47
- hash: Hex;
48
- };
49
- declare function hashCanonicalizedJson(obj: unknown, algorithm: "keccak256" | "sha256"): Hex;
50
-
51
- type index_Caip10 = Caip10;
52
- type index_Did = Did;
53
- type index_ParsedCaip10 = ParsedCaip10;
54
- type index_ParsedCaip2 = ParsedCaip2;
55
- declare const index_buildCaip10: typeof buildCaip10;
56
- declare const index_buildCaip2: typeof buildCaip2;
57
- declare const index_buildDidPkh: typeof buildDidPkh;
58
- declare const index_buildDidPkhFromCaip10: typeof buildDidPkhFromCaip10;
59
- declare const index_buildDidWeb: typeof buildDidWeb;
60
- declare const index_buildEvmDidPkh: typeof buildEvmDidPkh;
61
- declare const index_canonicalizeForHash: typeof canonicalizeForHash;
62
- declare const index_canonicalizeJson: typeof canonicalizeJson;
63
- declare const index_computeDidAddress: typeof computeDidAddress;
64
- declare const index_computeDidHash: typeof computeDidHash;
65
- declare const index_didToAddress: typeof didToAddress;
66
- declare const index_extractAddressFromDid: typeof extractAddressFromDid;
67
- declare const index_extractDidIdentifier: typeof extractDidIdentifier;
68
- declare const index_extractDidMethod: typeof extractDidMethod;
69
- declare const index_getAddressFromDidPkh: typeof getAddressFromDidPkh;
70
- declare const index_getChainIdFromDidPkh: typeof getChainIdFromDidPkh;
71
- declare const index_getDomainFromDidWeb: typeof getDomainFromDidWeb;
72
- declare const index_getNamespaceFromDidPkh: typeof getNamespaceFromDidPkh;
73
- declare const index_hashCanonicalizedJson: typeof hashCanonicalizedJson;
74
- declare const index_isEvmDidPkh: typeof isEvmDidPkh;
75
- declare const index_isValidDid: typeof isValidDid;
76
- declare const index_normalizeCaip10: typeof normalizeCaip10;
77
- declare const index_normalizeDid: typeof normalizeDid;
78
- declare const index_normalizeDidHandle: typeof normalizeDidHandle;
79
- declare const index_normalizeDidKey: typeof normalizeDidKey;
80
- declare const index_normalizeDidPkh: typeof normalizeDidPkh;
81
- declare const index_normalizeDidWeb: typeof normalizeDidWeb;
82
- declare const index_normalizeDomain: typeof normalizeDomain;
83
- declare const index_parseCaip10: typeof parseCaip10;
84
- declare const index_parseCaip2: typeof parseCaip2;
85
- declare const index_validateDidAddress: typeof validateDidAddress;
86
- declare namespace index {
87
- export { type index_Caip10 as Caip10, type index_Did as Did, type Hex$1 as Hex, type index_ParsedCaip10 as ParsedCaip10, type index_ParsedCaip2 as ParsedCaip2, 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_didToAddress as didToAddress, index_extractAddressFromDid as extractAddressFromDid, index_extractDidIdentifier as extractDidIdentifier, index_extractDidMethod as extractDidMethod, index_getAddressFromDidPkh as getAddressFromDidPkh, index_getChainIdFromDidPkh as getChainIdFromDidPkh, index_getDomainFromDidWeb as getDomainFromDidWeb, index_getNamespaceFromDidPkh as getNamespaceFromDidPkh, index_hashCanonicalizedJson as hashCanonicalizedJson, index_isEvmDidPkh as isEvmDidPkh, index_isValidDid as isValidDid, index_normalizeCaip10 as normalizeCaip10, index_normalizeDid as normalizeDid, index_normalizeDidHandle as normalizeDidHandle, 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_validateDidAddress as validateDidAddress };
88
- }
89
-
90
- export { normalizeDidKey as A, normalizeDidPkh as B, type Caip10 as C, type Did as D, normalizeDidWeb as E, normalizeDomain as F, parseCaip10 as G, type Hex$1 as H, parseCaip2 as I, validateDidAddress as J, type ParsedCaip10 as P, type ParsedCaip2 as a, buildCaip10 as b, buildCaip2 as c, buildDidPkh as d, buildDidPkhFromCaip10 as e, buildDidWeb as f, buildEvmDidPkh as g, canonicalizeForHash as h, index as i, canonicalizeJson as j, computeDidAddress as k, computeDidHash as l, didToAddress as m, extractAddressFromDid as n, extractDidIdentifier as o, extractDidMethod as p, getAddressFromDidPkh as q, getChainIdFromDidPkh as r, getDomainFromDidWeb as s, getNamespaceFromDidPkh as t, hashCanonicalizedJson as u, isEvmDidPkh as v, isValidDid as w, normalizeCaip10 as x, normalizeDid as y, normalizeDidHandle as z };