@0xpolygonid/js-sdk 1.9.0 → 1.9.1
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/browser/esm/index.js +188 -70
- package/dist/browser/esm/index.js.map +1 -1
- package/dist/browser/umd/index.js +189 -69
- package/dist/browser/umd/index.js.map +1 -1
- package/dist/node/cjs/iden3comm/handlers/auth.js +14 -55
- package/dist/node/cjs/iden3comm/handlers/common.js +85 -0
- package/dist/node/cjs/iden3comm/handlers/contract-request.js +5 -15
- package/dist/node/cjs/iden3comm/handlers/index.js +2 -0
- package/dist/node/cjs/iden3comm/handlers/revocation-status.js +119 -0
- package/dist/node/cjs/identity/identity-wallet.js +4 -0
- package/dist/node/esm/iden3comm/handlers/auth.js +15 -56
- package/dist/node/esm/iden3comm/handlers/common.js +81 -0
- package/dist/node/esm/iden3comm/handlers/contract-request.js +5 -15
- package/dist/node/esm/iden3comm/handlers/index.js +2 -0
- package/dist/node/esm/iden3comm/handlers/revocation-status.js +92 -0
- package/dist/node/esm/identity/identity-wallet.js +4 -0
- package/dist/types/iden3comm/handlers/auth.d.ts +1 -0
- package/dist/types/iden3comm/handlers/common.d.ts +23 -0
- package/dist/types/iden3comm/handlers/contract-request.d.ts +1 -1
- package/dist/types/iden3comm/handlers/index.d.ts +2 -0
- package/dist/types/iden3comm/handlers/revocation-status.d.ts +59 -0
- package/dist/types/identity/identity-wallet.d.ts +13 -1
- package/dist/types/verifiable/credential.d.ts +1 -1
- package/dist/types/verifiable/proof.d.ts +5 -1
- package/package.json +1 -1
|
@@ -61990,6 +61990,10 @@ class IdentityWallet {
|
|
|
61990
61990
|
async generateNonRevocationMtp(did, credential, treeState) {
|
|
61991
61991
|
const coreClaim = await this.getCoreClaimFromCredential(credential);
|
|
61992
61992
|
const revNonce = coreClaim.getRevocationNonce();
|
|
61993
|
+
return this.generateNonRevocationMtpWithNonce(did, revNonce, treeState);
|
|
61994
|
+
}
|
|
61995
|
+
/** {@inheritDoc IIdentityWallet.generateNonRevocationMtpWithNonce} */
|
|
61996
|
+
async generateNonRevocationMtpWithNonce(did, revNonce, treeState) {
|
|
61993
61997
|
const treesModel = await this.getDIDTreeModel(did);
|
|
61994
61998
|
const revocationTree = await this._storage.mt.getMerkleTreeByIdentifierAndType(did.string(), MerkleTreeType.Revocations);
|
|
61995
61999
|
const claimsRoot = await treesModel.claimsTree.root();
|
|
@@ -64553,6 +64557,86 @@ class JWSPacker {
|
|
|
64553
64557
|
}
|
|
64554
64558
|
}
|
|
64555
64559
|
|
|
64560
|
+
/**
|
|
64561
|
+
* Groups the ZeroKnowledgeProofRequest objects based on their groupId.
|
|
64562
|
+
* Returns a Map where the key is the groupId and the value is an object containing the query and linkNonce.
|
|
64563
|
+
*
|
|
64564
|
+
* @param requestScope - An array of ZeroKnowledgeProofRequest objects.
|
|
64565
|
+
* @returns A Map<number, { query: JSONObject; linkNonce: number }> representing the grouped queries.
|
|
64566
|
+
*/
|
|
64567
|
+
const getGroupedQueries = (requestScope) => requestScope.reduce((acc, proofReq) => {
|
|
64568
|
+
const groupId = proofReq.query.groupId;
|
|
64569
|
+
if (!groupId) {
|
|
64570
|
+
return acc;
|
|
64571
|
+
}
|
|
64572
|
+
const existedData = acc.get(groupId);
|
|
64573
|
+
if (!existedData) {
|
|
64574
|
+
const seed = getRandomBytes(12);
|
|
64575
|
+
const dataView = new DataView(seed.buffer);
|
|
64576
|
+
const linkNonce = dataView.getUint32(0);
|
|
64577
|
+
acc.set(groupId, { query: proofReq.query, linkNonce });
|
|
64578
|
+
return acc;
|
|
64579
|
+
}
|
|
64580
|
+
const credentialSubject = mergeObjects(existedData.query.credentialSubject, proofReq.query.credentialSubject);
|
|
64581
|
+
acc.set(groupId, {
|
|
64582
|
+
...existedData,
|
|
64583
|
+
query: {
|
|
64584
|
+
skipClaimRevocationCheck: existedData.query.skipClaimRevocationCheck || proofReq.query.skipClaimRevocationCheck,
|
|
64585
|
+
...existedData.query,
|
|
64586
|
+
credentialSubject
|
|
64587
|
+
}
|
|
64588
|
+
});
|
|
64589
|
+
return acc;
|
|
64590
|
+
}, new Map());
|
|
64591
|
+
/**
|
|
64592
|
+
* Processes zero knowledge proof requests.
|
|
64593
|
+
*
|
|
64594
|
+
* @param senderIdentifier - The identifier of the sender.
|
|
64595
|
+
* @param requests - An array of zero knowledge proof requests.
|
|
64596
|
+
* @param from - The identifier of the sender.
|
|
64597
|
+
* @param proofService - The proof service.
|
|
64598
|
+
* @param opts - Additional options for processing the requests.
|
|
64599
|
+
* @returns A promise that resolves to an array of zero knowledge proof responses.
|
|
64600
|
+
*/
|
|
64601
|
+
const processZeroKnowledgeProofRequests = async (senderIdentifier, requests, from, proofService, opts) => {
|
|
64602
|
+
const requestScope = requests ?? [];
|
|
64603
|
+
const combinedQueries = getGroupedQueries(requestScope);
|
|
64604
|
+
const groupedCredentialsCache = new Map();
|
|
64605
|
+
const zkpResponses = [];
|
|
64606
|
+
for (const proofReq of requestScope) {
|
|
64607
|
+
if (!opts.supportedCircuits.includes(proofReq.circuitId)) {
|
|
64608
|
+
throw new Error(`Circuit ${proofReq.circuitId} is not allowed`);
|
|
64609
|
+
}
|
|
64610
|
+
const query = proofReq.query;
|
|
64611
|
+
const groupId = query.groupId;
|
|
64612
|
+
const combinedQueryData = combinedQueries.get(groupId);
|
|
64613
|
+
if (groupId) {
|
|
64614
|
+
if (!combinedQueryData) {
|
|
64615
|
+
throw new Error(`Invalid group id ${query.groupId}`);
|
|
64616
|
+
}
|
|
64617
|
+
const combinedQuery = combinedQueryData.query;
|
|
64618
|
+
if (!groupedCredentialsCache.has(groupId)) {
|
|
64619
|
+
const credWithRevStatus = await proofService.findCredentialByProofQuery(senderIdentifier, combinedQueryData.query);
|
|
64620
|
+
if (!credWithRevStatus.cred) {
|
|
64621
|
+
throw new Error(`Credential not found for query ${JSON.stringify(combinedQuery)}`);
|
|
64622
|
+
}
|
|
64623
|
+
groupedCredentialsCache.set(groupId, credWithRevStatus);
|
|
64624
|
+
}
|
|
64625
|
+
}
|
|
64626
|
+
const credWithRevStatus = groupedCredentialsCache.get(groupId);
|
|
64627
|
+
const zkpRes = await proofService.generateProof(proofReq, senderIdentifier, {
|
|
64628
|
+
verifierDid: from,
|
|
64629
|
+
challenge: opts.challenge,
|
|
64630
|
+
skipRevocation: Boolean(query.skipClaimRevocationCheck),
|
|
64631
|
+
credential: credWithRevStatus?.cred,
|
|
64632
|
+
credentialRevocationStatus: credWithRevStatus?.revStatus,
|
|
64633
|
+
linkNonce: combinedQueryData?.linkNonce ? BigInt(combinedQueryData.linkNonce) : undefined
|
|
64634
|
+
});
|
|
64635
|
+
zkpResponses.push(zkpRes);
|
|
64636
|
+
}
|
|
64637
|
+
return zkpResponses;
|
|
64638
|
+
};
|
|
64639
|
+
|
|
64556
64640
|
/**
|
|
64557
64641
|
* createAuthorizationRequest is a function to create protocol authorization request
|
|
64558
64642
|
* @param {string} reason - reason to request proof
|
|
@@ -64607,6 +64691,12 @@ class AuthHandler {
|
|
|
64607
64691
|
constructor(_packerMgr, _proofService) {
|
|
64608
64692
|
this._packerMgr = _packerMgr;
|
|
64609
64693
|
this._proofService = _proofService;
|
|
64694
|
+
this._supportedCircuits = [
|
|
64695
|
+
CircuitId.AtomicQueryV3,
|
|
64696
|
+
CircuitId.AtomicQuerySigV2,
|
|
64697
|
+
CircuitId.AtomicQueryMTPV2,
|
|
64698
|
+
CircuitId.LinkedMultiQuery10
|
|
64699
|
+
];
|
|
64610
64700
|
}
|
|
64611
64701
|
/**
|
|
64612
64702
|
* @inheritdoc IAuthHandler#parseAuthorizationRequest
|
|
@@ -64641,6 +64731,11 @@ class AuthHandler {
|
|
|
64641
64731
|
did = DID.parse(authRequest.to);
|
|
64642
64732
|
}
|
|
64643
64733
|
const guid = v4();
|
|
64734
|
+
if (!authRequest.from) {
|
|
64735
|
+
throw new Error('auth request should contain from field');
|
|
64736
|
+
}
|
|
64737
|
+
const from = DID.parse(authRequest.from);
|
|
64738
|
+
const responseScope = await processZeroKnowledgeProofRequests(did, authRequest?.body.scope, from, this._proofService, { ...opts, supportedCircuits: this._supportedCircuits });
|
|
64644
64739
|
const authResponse = {
|
|
64645
64740
|
id: guid,
|
|
64646
64741
|
typ: opts.mediaType,
|
|
@@ -64648,64 +64743,11 @@ class AuthHandler {
|
|
|
64648
64743
|
thid: authRequest.thid ?? guid,
|
|
64649
64744
|
body: {
|
|
64650
64745
|
message: authRequest?.body?.message,
|
|
64651
|
-
scope:
|
|
64746
|
+
scope: responseScope
|
|
64652
64747
|
},
|
|
64653
64748
|
from: did.string(),
|
|
64654
64749
|
to: authRequest.from
|
|
64655
64750
|
};
|
|
64656
|
-
const requestScope = authRequest.body.scope;
|
|
64657
|
-
const combinedQueries = requestScope.reduce((acc, proofReq) => {
|
|
64658
|
-
const groupId = proofReq.query.groupId;
|
|
64659
|
-
if (!groupId) {
|
|
64660
|
-
return acc;
|
|
64661
|
-
}
|
|
64662
|
-
const existedData = acc.get(groupId);
|
|
64663
|
-
if (!existedData) {
|
|
64664
|
-
const seed = getRandomBytes(12);
|
|
64665
|
-
const dataView = new DataView(seed.buffer);
|
|
64666
|
-
const linkNonce = dataView.getUint32(0);
|
|
64667
|
-
acc.set(groupId, { query: proofReq.query, linkNonce });
|
|
64668
|
-
return acc;
|
|
64669
|
-
}
|
|
64670
|
-
const credentialSubject = mergeObjects(existedData.query.credentialSubject, proofReq.query.credentialSubject);
|
|
64671
|
-
acc.set(groupId, {
|
|
64672
|
-
...existedData,
|
|
64673
|
-
query: {
|
|
64674
|
-
skipClaimRevocationCheck: existedData.query.skipClaimRevocationCheck || proofReq.query.skipClaimRevocationCheck,
|
|
64675
|
-
...existedData.query,
|
|
64676
|
-
credentialSubject
|
|
64677
|
-
}
|
|
64678
|
-
});
|
|
64679
|
-
return acc;
|
|
64680
|
-
}, new Map());
|
|
64681
|
-
const groupedCredentialsCache = new Map();
|
|
64682
|
-
for (const proofReq of requestScope) {
|
|
64683
|
-
const query = proofReq.query;
|
|
64684
|
-
const groupId = query.groupId;
|
|
64685
|
-
const combinedQueryData = combinedQueries.get(groupId);
|
|
64686
|
-
if (groupId) {
|
|
64687
|
-
if (!combinedQueryData) {
|
|
64688
|
-
throw new Error(`Invalid group id ${query.groupId}`);
|
|
64689
|
-
}
|
|
64690
|
-
const combinedQuery = combinedQueryData.query;
|
|
64691
|
-
if (!groupedCredentialsCache.has(groupId)) {
|
|
64692
|
-
const credWithRevStatus = await this._proofService.findCredentialByProofQuery(did, combinedQueryData.query);
|
|
64693
|
-
if (!credWithRevStatus.cred) {
|
|
64694
|
-
throw new Error(`Credential not found for query ${JSON.stringify(combinedQuery)}`);
|
|
64695
|
-
}
|
|
64696
|
-
groupedCredentialsCache.set(groupId, credWithRevStatus);
|
|
64697
|
-
}
|
|
64698
|
-
}
|
|
64699
|
-
const credWithRevStatus = groupedCredentialsCache.get(groupId);
|
|
64700
|
-
const zkpRes = await this._proofService.generateProof(proofReq, did, {
|
|
64701
|
-
verifierDid: DID.parse(authRequest.from),
|
|
64702
|
-
skipRevocation: Boolean(query.skipClaimRevocationCheck),
|
|
64703
|
-
credential: credWithRevStatus?.cred,
|
|
64704
|
-
credentialRevocationStatus: credWithRevStatus?.revStatus,
|
|
64705
|
-
linkNonce: combinedQueryData?.linkNonce ? BigInt(combinedQueryData.linkNonce) : undefined
|
|
64706
|
-
});
|
|
64707
|
-
authResponse.body.scope.push(zkpRes);
|
|
64708
|
-
}
|
|
64709
64751
|
const msgBytes = byteEncoder.encode(JSON.stringify(authResponse));
|
|
64710
64752
|
const packerOpts = opts.mediaType === MediaType.SignedMessage
|
|
64711
64753
|
? opts.packerOptions
|
|
@@ -64974,7 +65016,7 @@ class ContractRequestHandler {
|
|
|
64974
65016
|
this._packerMgr = _packerMgr;
|
|
64975
65017
|
this._proofService = _proofService;
|
|
64976
65018
|
this._zkpVerifier = _zkpVerifier;
|
|
64977
|
-
this.
|
|
65019
|
+
this._supportedCircuits = [
|
|
64978
65020
|
CircuitId.AtomicQueryMTPV2OnChain,
|
|
64979
65021
|
CircuitId.AtomicQuerySigV2OnChain,
|
|
64980
65022
|
CircuitId.AtomicQueryV3OnChain
|
|
@@ -65011,25 +65053,14 @@ class ContractRequestHandler {
|
|
|
65011
65053
|
if (!opts.ethSigner) {
|
|
65012
65054
|
throw new Error("Can't sign transaction. Provide Signer in options.");
|
|
65013
65055
|
}
|
|
65014
|
-
const zkRequests = [];
|
|
65015
65056
|
const { chain_id } = ciRequest.body.transaction_data;
|
|
65016
65057
|
const networkFlag = Object.keys(ChainIds).find((key) => ChainIds[key] === chain_id);
|
|
65017
65058
|
if (!networkFlag) {
|
|
65018
65059
|
throw new Error(`Invalid chain id ${chain_id}`);
|
|
65019
65060
|
}
|
|
65020
|
-
|
|
65021
|
-
|
|
65022
|
-
|
|
65023
|
-
}
|
|
65024
|
-
const query = proofReq.query;
|
|
65025
|
-
const zkpRes = await this._proofService.generateProof(proofReq, did, {
|
|
65026
|
-
skipRevocation: query.skipClaimRevocationCheck ?? false,
|
|
65027
|
-
challenge: opts.challenge,
|
|
65028
|
-
verifierDid: ciRequest.from ? DID.parse(ciRequest.from) : undefined
|
|
65029
|
-
});
|
|
65030
|
-
zkRequests.push(zkpRes);
|
|
65031
|
-
}
|
|
65032
|
-
return this._zkpVerifier.submitZKPResponse(opts.ethSigner, ciRequest.body.transaction_data, zkRequests);
|
|
65061
|
+
const verifierDid = ciRequest.from ? DID.parse(ciRequest.from) : undefined;
|
|
65062
|
+
const zkpResponses = await processZeroKnowledgeProofRequests(did, ciRequest?.body?.scope, verifierDid, this._proofService, { ...opts, supportedCircuits: this._supportedCircuits });
|
|
65063
|
+
return this._zkpVerifier.submitZKPResponse(opts.ethSigner, ciRequest.body.transaction_data, zkpResponses);
|
|
65033
65064
|
}
|
|
65034
65065
|
}
|
|
65035
65066
|
|
|
@@ -65098,5 +65129,92 @@ class RefreshHandler {
|
|
|
65098
65129
|
}
|
|
65099
65130
|
}
|
|
65100
65131
|
|
|
65101
|
-
|
|
65132
|
+
/**
|
|
65133
|
+
*
|
|
65134
|
+
* Allows to process RevocationStatusRequest protocol message
|
|
65135
|
+
*
|
|
65136
|
+
|
|
65137
|
+
* @class RevocationStatusHandler
|
|
65138
|
+
* @implements implements IRevocationStatusHandler interface
|
|
65139
|
+
*/
|
|
65140
|
+
class RevocationStatusHandler {
|
|
65141
|
+
/**
|
|
65142
|
+
* Creates an instance of RevocationStatusHandler.
|
|
65143
|
+
* @param {IPackageManager} _packerMgr - package manager to unpack message envelope
|
|
65144
|
+
* @param {IIdentityWallet} _identityWallet - identity wallet
|
|
65145
|
+
*
|
|
65146
|
+
*/
|
|
65147
|
+
constructor(_packerMgr, _identityWallet) {
|
|
65148
|
+
this._packerMgr = _packerMgr;
|
|
65149
|
+
this._identityWallet = _identityWallet;
|
|
65150
|
+
}
|
|
65151
|
+
/**
|
|
65152
|
+
* @inheritdoc IRevocationStatusHandler#parseRevocationStatusRequest
|
|
65153
|
+
*/
|
|
65154
|
+
async parseRevocationStatusRequest(request) {
|
|
65155
|
+
const { unpackedMessage: message } = await this._packerMgr.unpack(request);
|
|
65156
|
+
const ciRequest = message;
|
|
65157
|
+
if (message.type !== PROTOCOL_MESSAGE_TYPE.REVOCATION_STATUS_REQUEST_MESSAGE_TYPE) {
|
|
65158
|
+
throw new Error('Invalid media type');
|
|
65159
|
+
}
|
|
65160
|
+
return ciRequest;
|
|
65161
|
+
}
|
|
65162
|
+
/**
|
|
65163
|
+
* @inheritdoc IRevocationStatusHandler#handleRevocationStatusRequest
|
|
65164
|
+
*/
|
|
65165
|
+
async handleRevocationStatusRequest(did, request, opts) {
|
|
65166
|
+
if (!opts) {
|
|
65167
|
+
opts = {
|
|
65168
|
+
mediaType: MediaType.PlainMessage
|
|
65169
|
+
};
|
|
65170
|
+
}
|
|
65171
|
+
if (opts.mediaType === MediaType.SignedMessage && !opts.packerOptions) {
|
|
65172
|
+
throw new Error(`jws packer options are required for ${MediaType.SignedMessage}`);
|
|
65173
|
+
}
|
|
65174
|
+
const rsRequest = await this.parseRevocationStatusRequest(request);
|
|
65175
|
+
if (!rsRequest.to) {
|
|
65176
|
+
throw new Error(`failed request. empty 'to' field`);
|
|
65177
|
+
}
|
|
65178
|
+
if (!rsRequest.from) {
|
|
65179
|
+
throw new Error(`failed request. empty 'from' field`);
|
|
65180
|
+
}
|
|
65181
|
+
if (!rsRequest.body?.revocation_nonce) {
|
|
65182
|
+
throw new Error(`failed request. empty 'revocation_nonce' field`);
|
|
65183
|
+
}
|
|
65184
|
+
const issuerDID = DID.parse(rsRequest.to);
|
|
65185
|
+
const mtpWithTreeState = await this._identityWallet.generateNonRevocationMtpWithNonce(issuerDID, BigInt(rsRequest.body.revocation_nonce), opts?.treeState);
|
|
65186
|
+
const treeState = mtpWithTreeState.treeState;
|
|
65187
|
+
const revStatus = {
|
|
65188
|
+
issuer: {
|
|
65189
|
+
state: treeState?.state.string(),
|
|
65190
|
+
claimsTreeRoot: treeState.claimsRoot.string(),
|
|
65191
|
+
revocationTreeRoot: treeState.revocationRoot.string(),
|
|
65192
|
+
rootOfRoots: treeState.rootOfRoots.string()
|
|
65193
|
+
},
|
|
65194
|
+
mtp: mtpWithTreeState.proof
|
|
65195
|
+
};
|
|
65196
|
+
const packerOpts = opts.mediaType === MediaType.SignedMessage
|
|
65197
|
+
? opts.packerOptions
|
|
65198
|
+
: {
|
|
65199
|
+
provingMethodAlg: proving.provingMethodGroth16AuthV2Instance.methodAlg
|
|
65200
|
+
};
|
|
65201
|
+
const senderDID = DID.parse(rsRequest.to);
|
|
65202
|
+
const guid = v4();
|
|
65203
|
+
const response = {
|
|
65204
|
+
id: guid,
|
|
65205
|
+
typ: MediaType.PlainMessage,
|
|
65206
|
+
type: PROTOCOL_MESSAGE_TYPE.REVOCATION_STATUS_RESPONSE_MESSAGE_TYPE,
|
|
65207
|
+
thid: rsRequest.thid ?? guid,
|
|
65208
|
+
body: revStatus,
|
|
65209
|
+
from: did.string(),
|
|
65210
|
+
to: rsRequest.from
|
|
65211
|
+
};
|
|
65212
|
+
return this._packerMgr.pack(opts.mediaType, byteEncoder.encode(JSON.stringify(response)), {
|
|
65213
|
+
senderDID,
|
|
65214
|
+
...packerOpts
|
|
65215
|
+
});
|
|
65216
|
+
}
|
|
65217
|
+
}
|
|
65218
|
+
|
|
65219
|
+
export { AbstractPrivateKeyStore, AgentResolver, AtomicQueryMTPV2Inputs, AtomicQueryMTPV2OnChainInputs, AtomicQueryMTPV2OnChainPubSignals, AtomicQueryMTPV2PubSignals, AtomicQuerySigV2Inputs, AtomicQuerySigV2OnChainCircuitInputs, AtomicQuerySigV2OnChainInputs, AtomicQuerySigV2OnChainPubSignals, AtomicQuerySigV2PubSignals, AtomicQueryV3Inputs, AtomicQueryV3OnChainInputs, AtomicQueryV3OnChainPubSignals, AtomicQueryV3PubSignals, AuthHandler, AuthV2Inputs, AuthV2PubSignals, BJJSignatureProof2021, BaseConfig, BjjProvider, BrowserDataSource, CircuitClaim, CircuitError, CircuitId, CircuitStorage, ContractRequestHandler, CredentialStatusPublisherRegistry, CredentialStatusResolverRegistry, CredentialStatusType, CredentialStorage, CredentialWallet, DIDDocumentJSONSchema, DataPrepareHandlerFunc, ErrorEmptyAuthClaimNonRevProof, ErrorEmptyAuthClaimProof, ErrorEmptyChallengeSignature, ErrorEmptyClaimNonRevProof, ErrorEmptyClaimProof, ErrorEmptyClaimSignature, ErrorEmptyIssuerAuthClaimNonRevProof, ErrorEmptyIssuerAuthClaimProof, ErrorUserStateInRelayClaimProof, EthStateStorage, FSCircuitStorage, FetchHandler, FilterQuery, Iden3OnchainSmtCredentialStatusPublisher, Iden3SmtRhsCredentialStatusPublisher, Iden3SparseMerkleTreeProof, IdentityStorage, IdentityWallet, InMemoryDataSource, InMemoryMerkleTreeStorage, InMemoryPrivateKeyStore, IndexedDBDataSource, IndexedDBPrivateKeyStore, InputGenerator, IssuerResolver, JSON_SCHEMA_VALIDATORS_REGISTRY, JWSPacker, JsonSchemaValidator, KMS, KmsKeyType, LDParser, LinkedMultiQueryInputs, LinkedMultiQueryPubSignals, LocalStoragePrivateKeyStore, MerkleTreeIndexedDBStorage, MerkleTreeLocalStorage, MerkleTreeType, MerklizedRootPosition, MessageBus, NativeProver, OnChainResolver, OnChainRevocationStorage, OnChainZKPVerifier, Operators, constants as PROTOCOL_CONSTANTS, PackageManager, Parser, PlainPacker, ProofNode, ProofPurpose, ProofService, ProofType, PubSignalsVerifier, Query, QueryOperators, RHSResolver, RefreshHandler, RefreshServiceType, RevocationStatusHandler, SDK_EVENTS, Scalar, SearchError, Sec256k1Provider, StandardJSONCredentialsQueryFilter, StateTransitionInputs, StateTransitionPubSignals, SubjectPosition, ValueProof, Vector, VerifiableConstants, VerificationHandlerFunc, W3CCredential, XSDNS, ZKPPacker, availableTypesOperators, base58ToBytes, base64ToBytes, base64UrlToBytes, bigIntArrayToStringArray, bigIntCompare, buildFieldPath, buildTreeState, buildVerifierId, byteDecoder, byteEncoder, bytesToBase58, bytesToBase64, bytesToBase64url, bytesToHex$1 as bytesToHex, cacheLoader, calculateCoreSchemaHash, calculateQueryHashV2, calculateQueryHashV3, checkDataInField, checkQueryRequest, circuitValidator, comparatorOptions, createAuthorizationRequest, createAuthorizationRequestWithMessage, createSchemaHash, createVerifiablePresentation, credentialSubjectKey, dataFillsSlot, decodeBase64url, defaultEthConnectionConfig, defaultMTLevels, defaultMTLevelsClaim, defaultMTLevelsOnChain, defaultValueArraySize, defineMerklizedRootPosition, encodeBase64url, existenceToInt, extractProof, extractPublicKeyBytes, factoryComparer, fieldToByteArray, fieldValueFromVerifiablePresentation, fillCoreClaimSlot, fillSlot, findCredentialType, findValue, generateProfileDID, getFieldSlotIndex, getKMSIdByAuthCredential, getNodeAuxValue, getNodesRepresentation, getProperties, getSerializationAttrFromContext, getSerializationAttrFromParsedContext, getUserDIDFromCredential, hexToBytes$1 as hexToBytes, isGenesisState, isGenesisStateId, isIssuerGenesis, isValidOperation, keyPath, mergeObjects, parseCoreClaimSlots, parseCredentialSubject, parseQueriesMetadata, parseQueryMetadata, parseSerializationAttr, prepareCircuitArrayValues, prepareSiblingsStr, processZeroKnowledgeProofRequests, pushHashesToRHS, resolveDIDDocumentAuth, resolvePath, resolveVerificationMethods, strMTHex, stringByPath, subjectPositionIndex, swapEndianness, toClaimNonRevStatus, toGISTProof, toRevocationStatus, transformQueryValueToBigInts, userStateError, validateDIDDocumentAuth, validateTreeState, witnessBuilder };
|
|
65102
65220
|
//# sourceMappingURL=index.js.map
|