@oma3/omatrust 0.1.0-alpha.5 → 0.1.0-alpha.6
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/README.md +21 -7
- package/dist/{eip712-Dx9kvqtn.d.cts → eip712-CevLiOcD.d.cts} +31 -1
- package/dist/{eip712-Dx9kvqtn.d.ts → eip712-CevLiOcD.d.ts} +31 -1
- package/dist/index-BsUwj4r5.d.cts +103 -0
- package/dist/index-pYFRyitI.d.ts +103 -0
- package/dist/index.cjs +178 -52
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +2 -2
- package/dist/index.d.ts +2 -2
- package/dist/index.js +179 -53
- package/dist/index.js.map +1 -1
- package/dist/reputation/index.browser.cjs +178 -52
- 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 +177 -54
- package/dist/reputation/index.browser.js.map +1 -1
- package/dist/reputation/index.cjs +178 -52
- package/dist/reputation/index.cjs.map +1 -1
- package/dist/reputation/index.d.cts +2 -2
- package/dist/reputation/index.d.ts +2 -2
- package/dist/reputation/index.js +177 -54
- package/dist/reputation/index.js.map +1 -1
- package/package.json +2 -1
- package/dist/index-BUWbuvqZ.d.ts +0 -96
- package/dist/index-ByNU5VpJ.d.cts +0 -96
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export { A as AttestationQueryResult, B as BuildDelegatedTypedDataFromEncodedParams, C as CallControllerWitnessParams,
|
|
2
|
-
export { v as verifyDnsTxtControllerDid } from '../index-
|
|
1
|
+
export { A as AttestationQueryResult, a as AttestationValidationError, B as BuildDelegatedTypedDataFromEncodedParams, C as CallControllerWitnessParams, b as CallControllerWitnessResult, c as ChainConstants, d as CreatePopEip712ProofParams, e as CreatePopJwsProofParams, D as Did, E as EvidencePointerProof, G as GetAttestationParams, f as GetAttestationsByAttesterParams, g as GetLatestAttestationsParams, H as Hex, L as ListAttestationsParams, P as PopEip712Proof, h as PopJwsProof, i as PrepareDelegatedAttestationParams, j as PrepareDelegatedAttestationResult, k as ProofPurpose, l as ProofType, m as ProofWrapper, R as RevokeAttestationParams, n as RevokeAttestationResult, S as SchemaField, o as SubmitAttestationParams, p as SubmitAttestationResult, q as SubmitDelegatedAttestationParams, r as SubmitDelegatedAttestationResult, T as TxEncodedValueProof, s as TxInteractionProof, V as VerifyAttestationParams, t as VerifyAttestationResult, u as VerifyProofParams, v as VerifyProofResult, X as X402OfferProof, w as X402ReceiptProof, x as buildDelegatedAttestationTypedData, y as buildDelegatedTypedDataFromEncoded, z as buildDnsTxtRecord, F as buildEip712Domain, I as calculateAverageUserReviewRating, J as calculateTransferAmount, K as calculateTransferAmountFromAddresses, M as callControllerWitness, N as constructSeed, O as createEvidencePointerProof, Q as createPopEip712Proof, U as createPopJwsProof, W as createTxEncodedValueProof, Y as createTxInteractionProof, Z as createX402OfferProof, _ as createX402ReceiptProof, $ as decodeAttestationData, a0 as deduplicateReviews, a1 as encodeAttestationData, a2 as extractAddressesFromDidDocument, a3 as extractExpirationTime, a4 as fetchDidDocument, a5 as formatSchemaUid, a6 as formatTransferAmount, a7 as getAttestation, a8 as getAttestationsByAttester, a9 as getAttestationsForDid, aa as getChainConstants, ab as getExplorerAddressUrl, ac as getExplorerTxUrl, ad as getLatestAttestations, ae as getMajorVersion, af as getOmaTrustProofEip712Types, ag as getSchemaDetails, ah as getSupportedChainIds, ai as hashSeed, aj as isChainSupported, ak as listAttestations, al as normalizeSchema, am as parseDnsTxtRecord, an as prepareDelegatedAttestation, ao as revokeAttestation, ap as schemaToString, aq as splitSignature, ar as submitAttestation, as as submitDelegatedAttestation, at as validateAttestationData, au as verifyAttestation, av as verifyDidDocumentControllerDid, aw as verifyEip712Signature, ax as verifyProof, ay as verifySchemaExists } from '../eip712-CevLiOcD.cjs';
|
|
2
|
+
export { v as verifyDnsTxtControllerDid } from '../index-BsUwj4r5.cjs';
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export { A as AttestationQueryResult, B as BuildDelegatedTypedDataFromEncodedParams, C as CallControllerWitnessParams,
|
|
2
|
-
export { v as verifyDnsTxtControllerDid } from '../index-
|
|
1
|
+
export { A as AttestationQueryResult, a as AttestationValidationError, B as BuildDelegatedTypedDataFromEncodedParams, C as CallControllerWitnessParams, b as CallControllerWitnessResult, c as ChainConstants, d as CreatePopEip712ProofParams, e as CreatePopJwsProofParams, D as Did, E as EvidencePointerProof, G as GetAttestationParams, f as GetAttestationsByAttesterParams, g as GetLatestAttestationsParams, H as Hex, L as ListAttestationsParams, P as PopEip712Proof, h as PopJwsProof, i as PrepareDelegatedAttestationParams, j as PrepareDelegatedAttestationResult, k as ProofPurpose, l as ProofType, m as ProofWrapper, R as RevokeAttestationParams, n as RevokeAttestationResult, S as SchemaField, o as SubmitAttestationParams, p as SubmitAttestationResult, q as SubmitDelegatedAttestationParams, r as SubmitDelegatedAttestationResult, T as TxEncodedValueProof, s as TxInteractionProof, V as VerifyAttestationParams, t as VerifyAttestationResult, u as VerifyProofParams, v as VerifyProofResult, X as X402OfferProof, w as X402ReceiptProof, x as buildDelegatedAttestationTypedData, y as buildDelegatedTypedDataFromEncoded, z as buildDnsTxtRecord, F as buildEip712Domain, I as calculateAverageUserReviewRating, J as calculateTransferAmount, K as calculateTransferAmountFromAddresses, M as callControllerWitness, N as constructSeed, O as createEvidencePointerProof, Q as createPopEip712Proof, U as createPopJwsProof, W as createTxEncodedValueProof, Y as createTxInteractionProof, Z as createX402OfferProof, _ as createX402ReceiptProof, $ as decodeAttestationData, a0 as deduplicateReviews, a1 as encodeAttestationData, a2 as extractAddressesFromDidDocument, a3 as extractExpirationTime, a4 as fetchDidDocument, a5 as formatSchemaUid, a6 as formatTransferAmount, a7 as getAttestation, a8 as getAttestationsByAttester, a9 as getAttestationsForDid, aa as getChainConstants, ab as getExplorerAddressUrl, ac as getExplorerTxUrl, ad as getLatestAttestations, ae as getMajorVersion, af as getOmaTrustProofEip712Types, ag as getSchemaDetails, ah as getSupportedChainIds, ai as hashSeed, aj as isChainSupported, ak as listAttestations, al as normalizeSchema, am as parseDnsTxtRecord, an as prepareDelegatedAttestation, ao as revokeAttestation, ap as schemaToString, aq as splitSignature, ar as submitAttestation, as as submitDelegatedAttestation, at as validateAttestationData, au as verifyAttestation, av as verifyDidDocumentControllerDid, aw as verifyEip712Signature, ax as verifyProof, ay as verifySchemaExists } from '../eip712-CevLiOcD.js';
|
|
2
|
+
export { v as verifyDnsTxtControllerDid } from '../index-pYFRyitI.js';
|
package/dist/reputation/index.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { SchemaEncoder, EAS } from '@ethereum-attestation-service/eas-sdk';
|
|
2
|
-
import { ZeroAddress, Signature,
|
|
2
|
+
import { ZeroAddress, Signature, toUtf8Bytes, sha256, keccak256, formatUnits, getAddress, isAddress, verifyTypedData, hexlify, randomBytes, Contract } from 'ethers';
|
|
3
3
|
import canonicalize from 'canonicalize';
|
|
4
4
|
import { resolveTxt } from 'dns/promises';
|
|
5
5
|
|
|
@@ -52,6 +52,13 @@ function encodeAttestationData(schema, data) {
|
|
|
52
52
|
if (!data || typeof data !== "object") {
|
|
53
53
|
throw new OmaTrustError("INVALID_INPUT", "data must be an object");
|
|
54
54
|
}
|
|
55
|
+
const validationErrors = validateAttestationData(schema, data);
|
|
56
|
+
if (validationErrors.length > 0) {
|
|
57
|
+
const summary = validationErrors.map((error) => `Field "${error.schemaFieldName}" (${error.expectedType}) got ${error.providedType}`).join("; ");
|
|
58
|
+
throw new OmaTrustError("INVALID_INPUT", `Attestation data validation failed: ${summary}`, {
|
|
59
|
+
errors: validationErrors
|
|
60
|
+
});
|
|
61
|
+
}
|
|
55
62
|
const fields = normalizeSchema(schema);
|
|
56
63
|
const schemaString = schemaToString(fields);
|
|
57
64
|
const encoder = new SchemaEncoder(schemaString);
|
|
@@ -64,6 +71,99 @@ function encodeAttestationData(schema, data) {
|
|
|
64
71
|
);
|
|
65
72
|
return encoded;
|
|
66
73
|
}
|
|
74
|
+
function getActualType(value) {
|
|
75
|
+
if (value === null) {
|
|
76
|
+
return "null";
|
|
77
|
+
}
|
|
78
|
+
if (value === void 0) {
|
|
79
|
+
return "undefined";
|
|
80
|
+
}
|
|
81
|
+
if (Array.isArray(value)) {
|
|
82
|
+
return "array";
|
|
83
|
+
}
|
|
84
|
+
if (typeof value === "number") {
|
|
85
|
+
return Number.isFinite(value) ? "number" : "non-finite-number";
|
|
86
|
+
}
|
|
87
|
+
return typeof value;
|
|
88
|
+
}
|
|
89
|
+
function isNumericValue(value, allowNegative) {
|
|
90
|
+
if (typeof value === "bigint") {
|
|
91
|
+
return allowNegative || value >= 0n;
|
|
92
|
+
}
|
|
93
|
+
if (typeof value === "number") {
|
|
94
|
+
if (!Number.isFinite(value) || !Number.isInteger(value)) {
|
|
95
|
+
return false;
|
|
96
|
+
}
|
|
97
|
+
return allowNegative || value >= 0;
|
|
98
|
+
}
|
|
99
|
+
if (typeof value === "string") {
|
|
100
|
+
if (value.length === 0) {
|
|
101
|
+
return false;
|
|
102
|
+
}
|
|
103
|
+
const pattern = allowNegative ? /^-?\d+$/ : /^\d+$/;
|
|
104
|
+
return pattern.test(value);
|
|
105
|
+
}
|
|
106
|
+
return false;
|
|
107
|
+
}
|
|
108
|
+
function isHex(value) {
|
|
109
|
+
return typeof value === "string" && /^0x[0-9a-fA-F]*$/.test(value);
|
|
110
|
+
}
|
|
111
|
+
function validateFieldValue(type, value) {
|
|
112
|
+
const normalizedType = type.trim().toLowerCase();
|
|
113
|
+
const bytesNMatch = normalizedType.match(/^bytes([1-9]|[12]\d|3[0-2])$/);
|
|
114
|
+
if (/^uint\d*$/.test(normalizedType)) {
|
|
115
|
+
return isNumericValue(value, false);
|
|
116
|
+
}
|
|
117
|
+
if (/^int\d*$/.test(normalizedType)) {
|
|
118
|
+
return isNumericValue(value, true);
|
|
119
|
+
}
|
|
120
|
+
if (normalizedType === "string") {
|
|
121
|
+
return typeof value === "string";
|
|
122
|
+
}
|
|
123
|
+
if (normalizedType === "string[]") {
|
|
124
|
+
return Array.isArray(value) && value.every((entry) => typeof entry === "string");
|
|
125
|
+
}
|
|
126
|
+
if (normalizedType === "bool") {
|
|
127
|
+
return typeof value === "boolean";
|
|
128
|
+
}
|
|
129
|
+
if (normalizedType === "address") {
|
|
130
|
+
return typeof value === "string" && isAddress(value);
|
|
131
|
+
}
|
|
132
|
+
if (normalizedType === "bytes") {
|
|
133
|
+
return isHex(value) && (value.length - 2) % 2 === 0;
|
|
134
|
+
}
|
|
135
|
+
if (bytesNMatch) {
|
|
136
|
+
const expectedBytes = Number(bytesNMatch[1]);
|
|
137
|
+
return isHex(value) && value.length === 2 + expectedBytes * 2;
|
|
138
|
+
}
|
|
139
|
+
return true;
|
|
140
|
+
}
|
|
141
|
+
function validateAttestationData(schema, data) {
|
|
142
|
+
if (!data || typeof data !== "object") {
|
|
143
|
+
return [{
|
|
144
|
+
schemaFieldName: "data",
|
|
145
|
+
expectedType: "object",
|
|
146
|
+
providedType: getActualType(data),
|
|
147
|
+
providedValue: data
|
|
148
|
+
}];
|
|
149
|
+
}
|
|
150
|
+
const fields = normalizeSchema(schema);
|
|
151
|
+
const errors = [];
|
|
152
|
+
for (const field of fields) {
|
|
153
|
+
const value = data[field.name];
|
|
154
|
+
const isValid = validateFieldValue(field.type, value);
|
|
155
|
+
if (isValid) {
|
|
156
|
+
continue;
|
|
157
|
+
}
|
|
158
|
+
errors.push({
|
|
159
|
+
schemaFieldName: field.name,
|
|
160
|
+
expectedType: field.type,
|
|
161
|
+
providedType: getActualType(value),
|
|
162
|
+
providedValue: value
|
|
163
|
+
});
|
|
164
|
+
}
|
|
165
|
+
return errors;
|
|
166
|
+
}
|
|
67
167
|
function decodeAttestationData(schema, encodedData) {
|
|
68
168
|
if (typeof encodedData !== "string" || !encodedData.startsWith("0x")) {
|
|
69
169
|
throw new OmaTrustError("INVALID_INPUT", "encodedData must be a hex string");
|
|
@@ -84,22 +184,11 @@ function decodeAttestationData(schema, encodedData) {
|
|
|
84
184
|
return result;
|
|
85
185
|
}
|
|
86
186
|
function extractExpirationTime(data) {
|
|
87
|
-
const
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
}
|
|
93
|
-
if (typeof value === "bigint") {
|
|
94
|
-
return value;
|
|
95
|
-
}
|
|
96
|
-
if (typeof value === "number") {
|
|
97
|
-
return value;
|
|
98
|
-
}
|
|
99
|
-
if (typeof value === "string" && /^\d+$/.test(value)) {
|
|
100
|
-
return BigInt(value);
|
|
101
|
-
}
|
|
102
|
-
}
|
|
187
|
+
const value = data["expiresAt"];
|
|
188
|
+
if (value === void 0 || value === null) return void 0;
|
|
189
|
+
if (typeof value === "bigint") return value;
|
|
190
|
+
if (typeof value === "number") return value;
|
|
191
|
+
if (typeof value === "string" && /^\d+$/.test(value)) return BigInt(value);
|
|
103
192
|
return void 0;
|
|
104
193
|
}
|
|
105
194
|
|
|
@@ -412,6 +501,34 @@ async function submitAttestation(params) {
|
|
|
412
501
|
throw new OmaTrustError("NETWORK_ERROR", "Failed to submit attestation", { err });
|
|
413
502
|
}
|
|
414
503
|
}
|
|
504
|
+
async function revokeAttestation(params) {
|
|
505
|
+
if (!params || typeof params !== "object") {
|
|
506
|
+
throw new OmaTrustError("INVALID_INPUT", "params must be provided");
|
|
507
|
+
}
|
|
508
|
+
if (!params.signer) {
|
|
509
|
+
throw new OmaTrustError("INVALID_INPUT", "signer is required");
|
|
510
|
+
}
|
|
511
|
+
const eas = new EAS(params.easContractAddress);
|
|
512
|
+
eas.connect(params.signer);
|
|
513
|
+
try {
|
|
514
|
+
const tx = await eas.revoke({
|
|
515
|
+
schema: params.schemaUid,
|
|
516
|
+
data: {
|
|
517
|
+
uid: params.uid,
|
|
518
|
+
value: toBigIntOrDefault(params.value, 0n)
|
|
519
|
+
}
|
|
520
|
+
});
|
|
521
|
+
await tx.wait();
|
|
522
|
+
const txHash = getEasTransactionHash(tx) ?? ZERO_UID;
|
|
523
|
+
const receipt = getEasTransactionReceipt(tx);
|
|
524
|
+
return {
|
|
525
|
+
txHash,
|
|
526
|
+
receipt
|
|
527
|
+
};
|
|
528
|
+
} catch (err) {
|
|
529
|
+
throw new OmaTrustError("NETWORK_ERROR", "Failed to revoke attestation", { err });
|
|
530
|
+
}
|
|
531
|
+
}
|
|
415
532
|
function buildDelegatedTypedData(params) {
|
|
416
533
|
return {
|
|
417
534
|
domain: {
|
|
@@ -612,21 +729,18 @@ async function getAttestation(params) {
|
|
|
612
729
|
throw new OmaTrustError("NETWORK_ERROR", "Failed to read attestation", { err });
|
|
613
730
|
}
|
|
614
731
|
}
|
|
615
|
-
async function
|
|
616
|
-
const
|
|
617
|
-
const
|
|
618
|
-
const toBlock = params.toBlock ?? await provider.getBlockNumber();
|
|
619
|
-
const fromBlock = params.fromBlock ?? Math.max(0, toBlock - 5e4);
|
|
620
|
-
const filter = contract.filters.Attested(didToAddress(params.did));
|
|
732
|
+
async function queryAttestationEvents(easContractAddress, provider, fromBlock, toBlock, options) {
|
|
733
|
+
const contract = new Contract(easContractAddress, EAS_EVENT_ABI, provider);
|
|
734
|
+
const filter = contract.filters.Attested(options?.recipient ?? null, options?.attester ?? null);
|
|
621
735
|
let events;
|
|
622
736
|
try {
|
|
623
737
|
events = await contract.queryFilter(filter, fromBlock, toBlock);
|
|
624
738
|
} catch (err) {
|
|
625
739
|
throw new OmaTrustError("NETWORK_ERROR", "Failed to query attestation events", { err });
|
|
626
740
|
}
|
|
627
|
-
const eas = new EAS(
|
|
741
|
+
const eas = new EAS(easContractAddress);
|
|
628
742
|
eas.connect(provider);
|
|
629
|
-
const schemaFilter =
|
|
743
|
+
const schemaFilter = options?.schemas?.map((s) => s.toLowerCase());
|
|
630
744
|
const results = [];
|
|
631
745
|
for (const event of events) {
|
|
632
746
|
if (!("args" in event && Array.isArray(event.args))) {
|
|
@@ -650,6 +764,34 @@ async function getAttestationsForDid(params) {
|
|
|
650
764
|
results.sort((a, b) => Number(b.time - a.time));
|
|
651
765
|
return results;
|
|
652
766
|
}
|
|
767
|
+
async function getAttestationsForDid(params) {
|
|
768
|
+
const provider = params.provider;
|
|
769
|
+
const toBlock = params.toBlock ?? await provider.getBlockNumber();
|
|
770
|
+
const fromBlock = params.fromBlock ?? Math.max(0, toBlock - 5e4);
|
|
771
|
+
return queryAttestationEvents(
|
|
772
|
+
params.easContractAddress,
|
|
773
|
+
provider,
|
|
774
|
+
fromBlock,
|
|
775
|
+
toBlock,
|
|
776
|
+
{ recipient: didToAddress(params.did), schemas: params.schemas }
|
|
777
|
+
);
|
|
778
|
+
}
|
|
779
|
+
async function getAttestationsByAttester(params) {
|
|
780
|
+
const provider = params.provider;
|
|
781
|
+
const toBlock = params.toBlock ?? await provider.getBlockNumber();
|
|
782
|
+
const fromBlock = params.fromBlock ?? Math.max(0, toBlock - 5e4);
|
|
783
|
+
if (params.limit !== void 0 && params.limit <= 0) {
|
|
784
|
+
return [];
|
|
785
|
+
}
|
|
786
|
+
const results = await queryAttestationEvents(
|
|
787
|
+
params.easContractAddress,
|
|
788
|
+
provider,
|
|
789
|
+
fromBlock,
|
|
790
|
+
toBlock,
|
|
791
|
+
{ attester: params.attester, schemas: params.schemas }
|
|
792
|
+
);
|
|
793
|
+
return params.limit !== void 0 ? results.slice(0, params.limit) : results;
|
|
794
|
+
}
|
|
653
795
|
async function listAttestations(params) {
|
|
654
796
|
const limit = params.limit ?? 20;
|
|
655
797
|
if (limit <= 0) {
|
|
@@ -660,34 +802,15 @@ async function listAttestations(params) {
|
|
|
660
802
|
}
|
|
661
803
|
async function getLatestAttestations(params) {
|
|
662
804
|
const provider = params.provider;
|
|
663
|
-
const
|
|
664
|
-
const
|
|
665
|
-
const
|
|
666
|
-
|
|
667
|
-
|
|
668
|
-
|
|
669
|
-
|
|
670
|
-
|
|
671
|
-
|
|
672
|
-
if (!("args" in event && Array.isArray(event.args))) {
|
|
673
|
-
continue;
|
|
674
|
-
}
|
|
675
|
-
const args = event.args;
|
|
676
|
-
const uid = args?.[2];
|
|
677
|
-
const schemaUid = args?.[3];
|
|
678
|
-
if (!uid || !schemaUid) {
|
|
679
|
-
continue;
|
|
680
|
-
}
|
|
681
|
-
if (schemaFilter && !schemaFilter.includes(schemaUid.toLowerCase())) {
|
|
682
|
-
continue;
|
|
683
|
-
}
|
|
684
|
-
const attestation = await eas.getAttestation(uid);
|
|
685
|
-
if (!attestation || !attestation.uid) {
|
|
686
|
-
continue;
|
|
687
|
-
}
|
|
688
|
-
results.push(parseAttestation(attestation, void 0, parseEventTxHash(event)));
|
|
689
|
-
}
|
|
690
|
-
results.sort((a, b) => Number(b.time - a.time));
|
|
805
|
+
const toBlock = await provider.getBlockNumber();
|
|
806
|
+
const fromBlock = params.fromBlock ?? Math.max(0, toBlock - 5e4);
|
|
807
|
+
const results = await queryAttestationEvents(
|
|
808
|
+
params.easContractAddress,
|
|
809
|
+
provider,
|
|
810
|
+
fromBlock,
|
|
811
|
+
toBlock,
|
|
812
|
+
{ schemas: params.schemas }
|
|
813
|
+
);
|
|
691
814
|
return results.slice(0, params.limit ?? 20);
|
|
692
815
|
}
|
|
693
816
|
function deduplicateReviews(attestations) {
|
|
@@ -1498,6 +1621,6 @@ async function verifyDnsTxtControllerDid(domain, expectedControllerDid) {
|
|
|
1498
1621
|
return { valid: false, reason: "No TXT record matched expected controller DID" };
|
|
1499
1622
|
}
|
|
1500
1623
|
|
|
1501
|
-
export { buildDelegatedAttestationTypedData, buildDelegatedTypedDataFromEncoded, buildDnsTxtRecord, buildEip712Domain, calculateAverageUserReviewRating, calculateTransferAmount, calculateTransferAmountFromAddresses, callControllerWitness, constructSeed, createEvidencePointerProof, createPopEip712Proof, createPopJwsProof, createTxEncodedValueProof, createTxInteractionProof, createX402OfferProof, createX402ReceiptProof, decodeAttestationData, deduplicateReviews, encodeAttestationData, extractAddressesFromDidDocument, extractExpirationTime, fetchDidDocument, formatSchemaUid, formatTransferAmount, getAttestation, getAttestationsForDid, getChainConstants, getExplorerAddressUrl, getExplorerTxUrl, getLatestAttestations, getMajorVersion, getOmaTrustProofEip712Types, getSchemaDetails, getSupportedChainIds, hashSeed, isChainSupported, listAttestations, normalizeSchema, parseDnsTxtRecord, prepareDelegatedAttestation, schemaToString, splitSignature, submitAttestation, submitDelegatedAttestation, verifyAttestation, verifyDidDocumentControllerDid, verifyDnsTxtControllerDid, verifyEip712Signature, verifyProof, verifySchemaExists };
|
|
1624
|
+
export { buildDelegatedAttestationTypedData, buildDelegatedTypedDataFromEncoded, buildDnsTxtRecord, buildEip712Domain, calculateAverageUserReviewRating, calculateTransferAmount, calculateTransferAmountFromAddresses, callControllerWitness, constructSeed, createEvidencePointerProof, createPopEip712Proof, createPopJwsProof, createTxEncodedValueProof, createTxInteractionProof, createX402OfferProof, createX402ReceiptProof, decodeAttestationData, deduplicateReviews, encodeAttestationData, extractAddressesFromDidDocument, extractExpirationTime, fetchDidDocument, formatSchemaUid, formatTransferAmount, getAttestation, getAttestationsByAttester, getAttestationsForDid, getChainConstants, getExplorerAddressUrl, getExplorerTxUrl, getLatestAttestations, getMajorVersion, getOmaTrustProofEip712Types, getSchemaDetails, getSupportedChainIds, hashSeed, isChainSupported, listAttestations, normalizeSchema, parseDnsTxtRecord, prepareDelegatedAttestation, revokeAttestation, schemaToString, splitSignature, submitAttestation, submitDelegatedAttestation, validateAttestationData, verifyAttestation, verifyDidDocumentControllerDid, verifyDnsTxtControllerDid, verifyEip712Signature, verifyProof, verifySchemaExists };
|
|
1502
1625
|
//# sourceMappingURL=index.js.map
|
|
1503
1626
|
//# sourceMappingURL=index.js.map
|