Skip to content

feat: add support of submitZKPResponseCrossChain #254

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 47 commits into from
Sep 4, 2024

Conversation

volodymyr-basiuk
Copy link
Collaborator

No description provided.

@volodymyr-basiuk volodymyr-basiuk force-pushed the feat/cross-chain-verify branch from b75189b to 92b719b Compare August 15, 2024 15:43
@volodymyr-basiuk volodymyr-basiuk changed the title WIP: feat: add support of submitZKPResponseCrossChain feat: add support of submitZKPResponseCrossChain Sep 3, 2024
@volodymyr-basiuk volodymyr-basiuk marked this pull request as ready for review September 3, 2024 11:35
daveroga
daveroga previously approved these changes Sep 3, 2024
vmidyllic
vmidyllic previously approved these changes Sep 4, 2024
daveroga
daveroga previously approved these changes Sep 4, 2024
request: ContractInvokeRequest,
responses: Map<string, ZeroKnowledgeProofResponse[]>
): Promise<ContractInvokeResponse> {
const response: ContractInvokeResponse = {
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I would change responses and response to more meaningfull

@@ -2,6 +2,7 @@ import { VerifiableConstants } from './constants';
import { Options, Path } from '@iden3/js-jsonld-merklization';
import { W3CCredential } from './credential';
import { QueryMetadata } from '../proof';
import { VerifiablePresentation } from '../iden3comm';
import { JsonDocumentObject } from '../iden3comm';
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I guess

Suggested change
import { JsonDocumentObject } from '../iden3comm';
import { VerifiablePresentation, JsonDocumentObject } from '../iden3comm';

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

fixed

@@ -38,6 +38,7 @@ import {
DataPrepareHandlerFunc,
IContractRequestHandler,
IPackageManager,
JsonDocumentObjectValue,
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

unused import

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

removed

issuerStateEthConfig.url = privadoTestRpcUrl;
issuerStateEthConfig.contractAddress = privadoTestStateContract; // privado test state contract

const memoryKeyStore = new InMemoryPrivateKeyStore();
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

we have helper function registerKeyProvidersInMemoryKMS and getInMemoryDataStorage in helper.ts. It will help to make this test code size shorter

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

reused

@volodymyr-basiuk volodymyr-basiuk merged commit 94dcfcb into main Sep 4, 2024
2 checks passed
@volodymyr-basiuk volodymyr-basiuk deleted the feat/cross-chain-verify branch September 4, 2024 13:11
volodymyr-basiuk added a commit that referenced this pull request Sep 4, 2024
feat: add support of  submitZKPResponseV2 and prepareTxArgsSubmit
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants