-
Notifications
You must be signed in to change notification settings - Fork 40
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
Conversation
b75189b
to
92b719b
Compare
…chainId found (#256) * fix: getStateContractAndProviderForId - throw error if no config for chainId found * provide chainId in config
request: ContractInvokeRequest, | ||
responses: Map<string, ZeroKnowledgeProofResponse[]> | ||
): Promise<ContractInvokeResponse> { | ||
const response: ContractInvokeResponse = { |
There was a problem hiding this comment.
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
src/verifiable/presentation.ts
Outdated
@@ -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'; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I guess
import { JsonDocumentObject } from '../iden3comm'; | |
import { VerifiablePresentation, JsonDocumentObject } from '../iden3comm'; |
There was a problem hiding this comment.
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, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
unused import
There was a problem hiding this comment.
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(); |
There was a problem hiding this comment.
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
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
reused
cb1bd47
feat: add support of submitZKPResponseV2 and prepareTxArgsSubmit
No description provided.