@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.
- package/dist/identity/index.cjs +543 -0
- package/dist/identity/index.cjs.map +1 -1
- package/dist/identity/index.d.cts +2 -1
- package/dist/identity/index.d.ts +2 -1
- package/dist/identity/index.js +527 -1
- package/dist/identity/index.js.map +1 -1
- package/dist/index-BOvk-7Ku.d.cts +235 -0
- package/dist/index-C2w5EvFH.d.ts +329 -0
- package/dist/index-QueRiudB.d.cts +329 -0
- package/dist/index-R78TpAhN.d.ts +235 -0
- package/dist/index.cjs +1475 -165
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +4 -3
- package/dist/index.d.ts +4 -3
- package/dist/index.js +1476 -166
- package/dist/index.js.map +1 -1
- package/dist/reputation/index.browser.cjs +943 -66
- package/dist/reputation/index.browser.cjs.map +1 -1
- package/dist/reputation/index.browser.d.cts +2 -2
- package/dist/reputation/index.browser.d.ts +2 -2
- package/dist/reputation/index.browser.js +941 -66
- package/dist/reputation/index.browser.js.map +1 -1
- package/dist/reputation/index.cjs +1393 -217
- package/dist/reputation/index.cjs.map +1 -1
- package/dist/reputation/index.d.cts +3 -2
- package/dist/reputation/index.d.ts +3 -2
- package/dist/reputation/index.js +1378 -217
- package/dist/reputation/index.js.map +1 -1
- package/dist/{subject-ownership-CXvzEjpH.d.cts → subject-ownership-B7cFlm8c.d.cts} +256 -26
- package/dist/{subject-ownership-CXvzEjpH.d.ts → subject-ownership-B7cFlm8c.d.ts} +256 -26
- package/dist/types-dpYxRq8N.d.cts +281 -0
- package/dist/types-dpYxRq8N.d.ts +281 -0
- package/dist/widgets/index.cjs +70 -27
- package/dist/widgets/index.cjs.map +1 -1
- package/dist/widgets/index.d.cts +42 -18
- package/dist/widgets/index.d.ts +42 -18
- package/dist/widgets/index.js +67 -26
- package/dist/widgets/index.js.map +1 -1
- package/package.json +3 -2
- package/dist/index-B9KW02US.d.cts +0 -119
- package/dist/index-DXrwBex9.d.ts +0 -119
- package/dist/index-QZDExA4I.d.cts +0 -90
- 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.js';
|
|
2
|
+
import { R as ResolveKeyOptions, c as JwsVerificationResult, b as JwsVerificationFailure } from './types-dpYxRq8N.js';
|
|
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 };
|