@procivis/react-native-one-core 1.112847.0 → 1.115411.0
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/android/src/main/java/ch/procivis/one/core/ProcivisOneCoreModule.kt +0 -40
- package/core-sdk.json +6 -6
- package/dist/src/config.d.ts +1 -1
- package/dist/src/config.js +1 -1
- package/dist/src/core.d.ts +1 -1
- package/dist/src/core.js +0 -2
- package/dist/src/one-core-uniffi-intf.d.ts +45 -50
- package/dist/src/one-core-uniffi-intf.js +0 -5
- package/ios/ProcivisOneCoreModule.m +0 -9
- package/ios/ProcivisOneCoreModule.swift +0 -28
- package/package.json +1 -1
|
@@ -244,14 +244,6 @@ class ProcivisOneCoreModule(reactContext: ReactApplicationContext) :
|
|
|
244
244
|
}
|
|
245
245
|
}
|
|
246
246
|
|
|
247
|
-
@ReactMethod
|
|
248
|
-
fun getPresentationDefinition(proofId: String, promise: Promise) {
|
|
249
|
-
asyncCall(promise, scope) {
|
|
250
|
-
val presentationDefinition = getCore().getPresentationDefinition(proofId)
|
|
251
|
-
return@asyncCall convertToRN(presentationDefinition)
|
|
252
|
-
}
|
|
253
|
-
}
|
|
254
|
-
|
|
255
247
|
@ReactMethod
|
|
256
248
|
fun getPresentationDefinitionV2(proofId: String, promise: Promise) {
|
|
257
249
|
asyncCall(promise, scope) {
|
|
@@ -268,38 +260,6 @@ class ProcivisOneCoreModule(reactContext: ReactApplicationContext) :
|
|
|
268
260
|
}
|
|
269
261
|
}
|
|
270
262
|
|
|
271
|
-
@ReactMethod
|
|
272
|
-
fun holderSubmitProof(
|
|
273
|
-
interactionId: String,
|
|
274
|
-
credentials: ReadableMap,
|
|
275
|
-
promise: Promise
|
|
276
|
-
) {
|
|
277
|
-
asyncCall(promise, scope) {
|
|
278
|
-
val submitCredentials =
|
|
279
|
-
mutableMapOf<String, List<PresentationSubmitCredentialRequest>>()
|
|
280
|
-
for (entry in credentials.entryIterator) {
|
|
281
|
-
val credentialList = when (val credentialValue = entry.value) {
|
|
282
|
-
is ReadableMap -> {
|
|
283
|
-
// Single credential object - convert to list
|
|
284
|
-
listOf(construct<PresentationSubmitCredentialRequest>(credentialValue))
|
|
285
|
-
}
|
|
286
|
-
is ReadableArray -> {
|
|
287
|
-
// Array of credentials - convert each one
|
|
288
|
-
(0 until credentialValue.size()).map { index ->
|
|
289
|
-
construct<PresentationSubmitCredentialRequest>(credentialValue.getMap(index)!!)
|
|
290
|
-
}
|
|
291
|
-
}
|
|
292
|
-
else -> {
|
|
293
|
-
throw IllegalArgumentException("Credential value must be either a Map or Array")
|
|
294
|
-
}
|
|
295
|
-
}
|
|
296
|
-
submitCredentials[entry.key] = credentialList
|
|
297
|
-
}
|
|
298
|
-
getCore().holderSubmitProof(interactionId, submitCredentials)
|
|
299
|
-
return@asyncCall null
|
|
300
|
-
}
|
|
301
|
-
}
|
|
302
|
-
|
|
303
263
|
@ReactMethod
|
|
304
264
|
fun holderSubmitProofV2(
|
|
305
265
|
interactionId: String,
|
package/core-sdk.json
CHANGED
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
{
|
|
2
2
|
"android": {
|
|
3
3
|
"debug": {
|
|
4
|
-
"url": "https://onesdk.blob.core.windows.net/core-sdk/
|
|
5
|
-
"sha1": "
|
|
4
|
+
"url": "https://onesdk.blob.core.windows.net/core-sdk/115411/android/onecore-debug.aar",
|
|
5
|
+
"sha1": "3a464c4b0bc9fbed7a483182b5d7c3690e894f32"
|
|
6
6
|
},
|
|
7
7
|
"release": {
|
|
8
|
-
"url": "https://onesdk.blob.core.windows.net/core-sdk/
|
|
9
|
-
"sha1": "
|
|
8
|
+
"url": "https://onesdk.blob.core.windows.net/core-sdk/115411/android/onecore-release.aar",
|
|
9
|
+
"sha1": "d8cefb412ab7e60787e07045dbc03eed24b5f60d"
|
|
10
10
|
}
|
|
11
11
|
},
|
|
12
12
|
"ios": {
|
|
13
|
-
"url": "https://onesdk.blob.core.windows.net/core-sdk/
|
|
14
|
-
"sha1": "
|
|
13
|
+
"url": "https://onesdk.blob.core.windows.net/core-sdk/115411/ios/deploy.zip",
|
|
14
|
+
"sha1": "761d84678950a56b91d6bf8e5cd55867b076e4e8"
|
|
15
15
|
}
|
|
16
16
|
}
|
package/dist/src/config.d.ts
CHANGED
package/dist/src/config.js
CHANGED
|
@@ -26,7 +26,7 @@ export var FormatFeature;
|
|
|
26
26
|
export var FormatSelectiveDisclosure;
|
|
27
27
|
(function (FormatSelectiveDisclosure) {
|
|
28
28
|
FormatSelectiveDisclosure["AnyLevel"] = "ANY_LEVEL";
|
|
29
|
-
FormatSelectiveDisclosure["
|
|
29
|
+
FormatSelectiveDisclosure["FirstLevel"] = "FIRST_LEVEL";
|
|
30
30
|
})(FormatSelectiveDisclosure || (FormatSelectiveDisclosure = {}));
|
|
31
31
|
export var RevocationOperation;
|
|
32
32
|
(function (RevocationOperation) {
|
package/dist/src/core.d.ts
CHANGED
|
@@ -10,4 +10,4 @@ export interface ONECore extends Omit<OneCore, "version" | "getConfig"> {
|
|
|
10
10
|
* @hidden
|
|
11
11
|
* New Architecture bridgeless issue workaround: see https://github.com/facebook/react-native/issues/43221
|
|
12
12
|
*/
|
|
13
|
-
export declare const interfaceMethodNames: readonly ["getVersion", "getConfig", "createOrganisation", "upsertOrganisation", "getOrganisation", "generateKey", "createDid", "listDids", "createIdentifier", "getIdentifier", "listIdentifiers", "deleteIdentifier", "handleInvitation", "holderAcceptCredential", "holderRejectCredential", "holderRefreshCredential", "initiateIssuance", "continueIssuance", "
|
|
13
|
+
export declare const interfaceMethodNames: readonly ["getVersion", "getConfig", "createOrganisation", "upsertOrganisation", "getOrganisation", "generateKey", "createDid", "listDids", "createIdentifier", "getIdentifier", "listIdentifiers", "deleteIdentifier", "handleInvitation", "holderAcceptCredential", "holderRejectCredential", "holderRefreshCredential", "initiateIssuance", "continueIssuance", "getPresentationDefinitionV2", "holderRejectProof", "holderSubmitProofV2", "listCredentials", "runTask", "deleteProofClaims", "getCredential", "getCredentialTrustInformation", "deleteCredential", "importCredentialSchema", "getCredentialSchema", "createCredentialSchema", "listCredentialSchemas", "deleteCredentialSchema", "createProof", "shareProof", "shareProofSchema", "shareCredentialSchema", "getProof", "getProofTrustInformation", "listProofs", "deleteProof", "proposeProof", "qesAuthorize", "qesSign", "createProofSchema", "listProofSchemas", "getProofSchema", "deleteProofSchema", "importProofSchema", "checkRevocation", "listHistory", "getHistoryEntry", "createBackup", "backupInfo", "deleteCache", "unpackBackup", "finalizeImport", "rollbackImport", "resolveJsonldContext", "holderRegisterWalletUnit", "holderActivateWalletUnit", "holderWalletUnitStatus", "holderGetWalletUnit", "holderWalletUnitUpdate", "holderGetWalletUnitTrustCollections", "registerVerifierInstance", "updateVerifierInstance", "getVerifierInstanceTrustCollections", "nfcReadIsoMdlEngagement", "nfcStopIsoMdlEngagement", "uninitialize"];
|
package/dist/src/core.js
CHANGED
|
@@ -23,10 +23,8 @@ export const interfaceMethodNames = [
|
|
|
23
23
|
"holderRefreshCredential",
|
|
24
24
|
"initiateIssuance",
|
|
25
25
|
"continueIssuance",
|
|
26
|
-
"getPresentationDefinition",
|
|
27
26
|
"getPresentationDefinitionV2",
|
|
28
27
|
"holderRejectProof",
|
|
29
|
-
"holderSubmitProof",
|
|
30
28
|
"holderSubmitProofV2",
|
|
31
29
|
"listCredentials",
|
|
32
30
|
"runTask",
|
|
@@ -562,7 +562,6 @@ export interface CredentialSchemaListQuery {
|
|
|
562
562
|
ids?: Array<string>;
|
|
563
563
|
exact?: Array<CredentialSchemaListQueryExactColumn>;
|
|
564
564
|
include?: Array<CredentialSchemaListIncludeEntityType>;
|
|
565
|
-
schemaId?: string;
|
|
566
565
|
schemaIds?: Array<string>;
|
|
567
566
|
formats?: Array<string>;
|
|
568
567
|
usesBatchIssuance?: boolean;
|
|
@@ -843,6 +842,8 @@ export interface HistoryListQuery {
|
|
|
843
842
|
proofId?: string;
|
|
844
843
|
/** Return only events associated with the provided proof schema ID. */
|
|
845
844
|
proofSchemaId?: string;
|
|
845
|
+
/** Return only events associated with the provided trust collection D. */
|
|
846
|
+
trustCollectionId?: string;
|
|
846
847
|
/**
|
|
847
848
|
* Search history events by string. Set `text` to specify the search
|
|
848
849
|
* string and optionally `type` to restrict which field is searched.
|
|
@@ -1012,6 +1013,7 @@ export interface ImportCredentialSchemaClaimSchema {
|
|
|
1012
1013
|
array?: boolean;
|
|
1013
1014
|
claims?: Array<ImportCredentialSchemaClaimSchema>;
|
|
1014
1015
|
mappings?: Array<CredentialClaimSchemaMapping>;
|
|
1016
|
+
translations?: CredentialClaimSchemaTranslations;
|
|
1015
1017
|
}
|
|
1016
1018
|
export interface ImportCredentialSchemaFormat {
|
|
1017
1019
|
format: string;
|
|
@@ -1218,39 +1220,6 @@ export interface PeripheralDiscoveryData {
|
|
|
1218
1220
|
advertisedServices: Array<string>;
|
|
1219
1221
|
advertisedServiceData?: Record<string, number[]>;
|
|
1220
1222
|
}
|
|
1221
|
-
export interface PresentationDefinition {
|
|
1222
|
-
requestGroups: Array<PresentationDefinitionRequestGroup>;
|
|
1223
|
-
credentials: Array<CredentialDetail>;
|
|
1224
|
-
}
|
|
1225
|
-
export interface PresentationDefinitionField {
|
|
1226
|
-
id: string;
|
|
1227
|
-
name?: string;
|
|
1228
|
-
purpose?: string;
|
|
1229
|
-
required: boolean;
|
|
1230
|
-
keyMap: Record<string, string>;
|
|
1231
|
-
}
|
|
1232
|
-
export interface PresentationDefinitionRequestGroup {
|
|
1233
|
-
id: string;
|
|
1234
|
-
name?: string;
|
|
1235
|
-
purpose?: string;
|
|
1236
|
-
rule: PresentationDefinitionRule;
|
|
1237
|
-
requestedCredentials: Array<PresentationDefinitionRequestedCredential>;
|
|
1238
|
-
}
|
|
1239
|
-
export interface PresentationDefinitionRequestedCredential {
|
|
1240
|
-
id: string;
|
|
1241
|
-
name?: string;
|
|
1242
|
-
purpose?: string;
|
|
1243
|
-
fields: Array<PresentationDefinitionField>;
|
|
1244
|
-
applicableCredentials: Array<string>;
|
|
1245
|
-
inapplicableCredentials: Array<string>;
|
|
1246
|
-
multiple?: boolean;
|
|
1247
|
-
}
|
|
1248
|
-
export interface PresentationDefinitionRule {
|
|
1249
|
-
type: PresentationDefinitionRuleType;
|
|
1250
|
-
min?: number;
|
|
1251
|
-
max?: number;
|
|
1252
|
-
count?: number;
|
|
1253
|
-
}
|
|
1254
1223
|
export interface PresentationDefinitionV2 {
|
|
1255
1224
|
credentialQueries: Record<string, CredentialQuery>;
|
|
1256
1225
|
credentialSets: Array<CredentialSet>;
|
|
@@ -1280,14 +1249,15 @@ export interface PresentationDefinitionV2Credential {
|
|
|
1280
1249
|
mdocMsoValidity?: MdocMsoValidity;
|
|
1281
1250
|
protocol: string;
|
|
1282
1251
|
profile?: string;
|
|
1283
|
-
/**
|
|
1252
|
+
/**
|
|
1253
|
+
* Present when the relying party's certificates do not satisfy
|
|
1254
|
+
* the embedded disclosure policy attached to the requested
|
|
1255
|
+
* credential. The wallet should surface this to the user as a
|
|
1256
|
+
* warning before they proceed with disclosure. See
|
|
1257
|
+
* [Handling Trust Information](https://docs.procivis.ch/wallet/handling-trust).
|
|
1258
|
+
*/
|
|
1284
1259
|
embeddedDisclosurePolicyViolation?: DisclosurePolicyViolation;
|
|
1285
1260
|
}
|
|
1286
|
-
export interface PresentationSubmitCredentialRequest {
|
|
1287
|
-
/** ID of the credential to submit. */
|
|
1288
|
-
credentialId: string;
|
|
1289
|
-
submitClaims: Array<string>;
|
|
1290
|
-
}
|
|
1291
1261
|
export interface PresentationSubmitV2CredentialRequest {
|
|
1292
1262
|
/** ID of the credential to submit. */
|
|
1293
1263
|
credentialId: string;
|
|
@@ -1535,24 +1505,48 @@ export interface ProposeProofResponse {
|
|
|
1535
1505
|
url?: string;
|
|
1536
1506
|
}
|
|
1537
1507
|
export interface QesAuthorizeRequest {
|
|
1508
|
+
/** Configured document signer name (for example, `SIGN8`). */
|
|
1538
1509
|
provider: string;
|
|
1510
|
+
/** Base64-encoded document to be signed. */
|
|
1539
1511
|
document: string;
|
|
1512
|
+
/**
|
|
1513
|
+
* Wallet deep link to which the provider redirects after authorization,
|
|
1514
|
+
* appending the authorization `code`. When omitted, the configured
|
|
1515
|
+
* default is used.
|
|
1516
|
+
*/
|
|
1540
1517
|
redirectUri?: string;
|
|
1518
|
+
/** Organizational context. Optional when resolvable from STS auth. */
|
|
1541
1519
|
organisationId?: string;
|
|
1542
1520
|
}
|
|
1543
1521
|
export interface QesAuthorizeResponse {
|
|
1522
|
+
/** Authorization URL the wallet opens to identify and authorize signing. */
|
|
1544
1523
|
authorizationUrl: string;
|
|
1524
|
+
/** PKCE `code_verifier` to pass back to `qesSign`. */
|
|
1545
1525
|
codeVerifier: string;
|
|
1546
1526
|
}
|
|
1547
1527
|
export interface QesSignRequest {
|
|
1528
|
+
/** Configured document signer name (for example, `SIGN8`). */
|
|
1548
1529
|
provider: string;
|
|
1530
|
+
/** Authorization code from the document signer redirect. */
|
|
1549
1531
|
code: string;
|
|
1532
|
+
/** `codeVerifier` returned from the `qesAuthorize` method. */
|
|
1550
1533
|
codeVerifier: string;
|
|
1534
|
+
/**
|
|
1535
|
+
* Base64-encoded document to be signed. Must be identical to the
|
|
1536
|
+
* document provided to `qes_authorize`.
|
|
1537
|
+
*/
|
|
1551
1538
|
document: string;
|
|
1539
|
+
/**
|
|
1540
|
+
* Wallet deep link. Must be identical to the one used at
|
|
1541
|
+
* `qesAuthorize`. When omitted, the configured default
|
|
1542
|
+
* is used.
|
|
1543
|
+
*/
|
|
1552
1544
|
redirectUri?: string;
|
|
1545
|
+
/** Organizational context. Optional when resolvable from STS auth. */
|
|
1553
1546
|
organisationId?: string;
|
|
1554
1547
|
}
|
|
1555
1548
|
export interface QesSignResponse {
|
|
1549
|
+
/** Base64-encoded signed document returned by the QES provider. */
|
|
1556
1550
|
signedDocument: string;
|
|
1557
1551
|
}
|
|
1558
1552
|
export interface RegisterVerifierInstanceRequest {
|
|
@@ -2104,10 +2098,6 @@ export declare enum OpenId4vciTxCodeInputMode {
|
|
|
2104
2098
|
NUMERIC = "NUMERIC",
|
|
2105
2099
|
TEXT = "TEXT"
|
|
2106
2100
|
}
|
|
2107
|
-
export declare enum PresentationDefinitionRuleType {
|
|
2108
|
-
ALL = "ALL",
|
|
2109
|
-
PICK = "PICK"
|
|
2110
|
-
}
|
|
2111
2101
|
export type PresentationDefinitionV2ClaimValue = {
|
|
2112
2102
|
type_: "BOOLEAN";
|
|
2113
2103
|
value: boolean;
|
|
@@ -2396,7 +2386,6 @@ export interface OneCore {
|
|
|
2396
2386
|
getIdentifier(id: string): Promise<IdentifierDetail>;
|
|
2397
2387
|
/** Returns details of an existing organization. */
|
|
2398
2388
|
getOrganisation(id: string): Promise<OrganisationDetail>;
|
|
2399
|
-
getPresentationDefinition(proofId: string): Promise<PresentationDefinition>;
|
|
2400
2389
|
getPresentationDefinitionV2(proofId: string): Promise<PresentationDefinitionV2>;
|
|
2401
2390
|
/** Returns detailed information about a proof request. */
|
|
2402
2391
|
getProof(proofId: string): Promise<ProofDetail>;
|
|
@@ -2434,11 +2423,6 @@ export interface OneCore {
|
|
|
2434
2423
|
holderRejectCredential(interactionId: string): Promise<void>;
|
|
2435
2424
|
/** Rejects a proof request. */
|
|
2436
2425
|
holderRejectProof(interactionId: string): Promise<void>;
|
|
2437
|
-
/**
|
|
2438
|
-
* Submits a presentation using Presentation Exchange as the query
|
|
2439
|
-
* language; this should be used after `getPresentationDefinition`.
|
|
2440
|
-
*/
|
|
2441
|
-
holderSubmitProof(interactionId: string, submitCredentials: Record<string, Array<PresentationSubmitCredentialRequest>>): Promise<void>;
|
|
2442
2426
|
/**
|
|
2443
2427
|
* Submits a presentation using DCQL as a query language; this should
|
|
2444
2428
|
* be used after `getPresentationDefinitionv2`.
|
|
@@ -2482,7 +2466,18 @@ export interface OneCore {
|
|
|
2482
2466
|
* options for `engagement`.
|
|
2483
2467
|
*/
|
|
2484
2468
|
proposeProof(request: ProposeProofRequest): Promise<ProposeProofResponse>;
|
|
2469
|
+
/**
|
|
2470
|
+
* Initiates the QES signing flow for a document with a configured
|
|
2471
|
+
* QES provider. Returns an `authorizationUrl` for the user to
|
|
2472
|
+
* authenticate with the provider, and a `codeVerifier` to be passed
|
|
2473
|
+
* to the `qesSign` method on return.
|
|
2474
|
+
*/
|
|
2485
2475
|
qesAuthorize(request: QesAuthorizeRequest): Promise<QesAuthorizeResponse>;
|
|
2476
|
+
/**
|
|
2477
|
+
* Completes the QES signing flow. Exchanges the authorization
|
|
2478
|
+
* `code` received from the provider redirect and the `codeVerifier`
|
|
2479
|
+
* from `qesAuthorize` for a signed document.
|
|
2480
|
+
*/
|
|
2486
2481
|
qesSign(request: QesSignRequest): Promise<QesSignResponse>;
|
|
2487
2482
|
/** Registers the verifier unit with a Verifier Provider. */
|
|
2488
2483
|
registerVerifierInstance(request: RegisterVerifierInstanceRequest): Promise<RegisterVerifierInstanceResponse>;
|
|
@@ -268,11 +268,6 @@ export var OpenId4vciTxCodeInputMode;
|
|
|
268
268
|
OpenId4vciTxCodeInputMode["NUMERIC"] = "NUMERIC";
|
|
269
269
|
OpenId4vciTxCodeInputMode["TEXT"] = "TEXT";
|
|
270
270
|
})(OpenId4vciTxCodeInputMode || (OpenId4vciTxCodeInputMode = {}));
|
|
271
|
-
export var PresentationDefinitionRuleType;
|
|
272
|
-
(function (PresentationDefinitionRuleType) {
|
|
273
|
-
PresentationDefinitionRuleType["ALL"] = "ALL";
|
|
274
|
-
PresentationDefinitionRuleType["PICK"] = "PICK";
|
|
275
|
-
})(PresentationDefinitionRuleType || (PresentationDefinitionRuleType = {}));
|
|
276
271
|
export var ProofListQueryExactColumn;
|
|
277
272
|
(function (ProofListQueryExactColumn) {
|
|
278
273
|
ProofListQueryExactColumn["NAME"] = "NAME";
|
|
@@ -91,10 +91,6 @@ RCT_EXTERN_METHOD(continueIssuance:(NSString *)url
|
|
|
91
91
|
resolver:(RCTPromiseResolveBlock)resolve
|
|
92
92
|
rejecter:(RCTPromiseRejectBlock)reject)
|
|
93
93
|
|
|
94
|
-
RCT_EXTERN_METHOD(getPresentationDefinition:(NSString *)proofId
|
|
95
|
-
resolver:(RCTPromiseResolveBlock)resolve
|
|
96
|
-
rejecter:(RCTPromiseRejectBlock)reject)
|
|
97
|
-
|
|
98
94
|
RCT_EXTERN_METHOD(getPresentationDefinitionV2:(NSString *)proofId
|
|
99
95
|
resolver:(RCTPromiseResolveBlock)resolve
|
|
100
96
|
rejecter:(RCTPromiseRejectBlock)reject)
|
|
@@ -103,11 +99,6 @@ RCT_EXTERN_METHOD(holderRejectProof:(NSString *)interactionId
|
|
|
103
99
|
resolver:(RCTPromiseResolveBlock)resolve
|
|
104
100
|
rejecter:(RCTPromiseRejectBlock)reject)
|
|
105
101
|
|
|
106
|
-
RCT_EXTERN_METHOD(holderSubmitProof:(NSString *)interactionId
|
|
107
|
-
credentials:(NSDictionary *)credentials
|
|
108
|
-
resolver:(RCTPromiseResolveBlock)resolve
|
|
109
|
-
rejecter:(RCTPromiseRejectBlock)reject)
|
|
110
|
-
|
|
111
102
|
RCT_EXTERN_METHOD(holderSubmitProofV2:(NSString *)interactionId
|
|
112
103
|
submission:(NSDictionary *)submission
|
|
113
104
|
resolver:(RCTPromiseResolveBlock)resolve
|
|
@@ -285,18 +285,6 @@ class ProcivisOneCoreModule: RCTEventEmitter {
|
|
|
285
285
|
}
|
|
286
286
|
}
|
|
287
287
|
|
|
288
|
-
@objc(getPresentationDefinition:resolver:rejecter:)
|
|
289
|
-
func getPresentationDefinition(
|
|
290
|
-
proofId: String,
|
|
291
|
-
resolve: @escaping RCTPromiseResolveBlock,
|
|
292
|
-
reject: @escaping RCTPromiseRejectBlock
|
|
293
|
-
) {
|
|
294
|
-
asyncCall(resolve, reject) {
|
|
295
|
-
let result = try await self.getCore().getPresentationDefinition(proofId: proofId)
|
|
296
|
-
return try serializeAny(result)
|
|
297
|
-
}
|
|
298
|
-
}
|
|
299
|
-
|
|
300
288
|
@objc(getPresentationDefinitionV2:resolver:rejecter:)
|
|
301
289
|
func getPresentationDefinitionV2(
|
|
302
290
|
proofId: String,
|
|
@@ -321,22 +309,6 @@ class ProcivisOneCoreModule: RCTEventEmitter {
|
|
|
321
309
|
}
|
|
322
310
|
}
|
|
323
311
|
|
|
324
|
-
@objc(holderSubmitProof:credentials:resolver:rejecter:)
|
|
325
|
-
func holderSubmitProof(
|
|
326
|
-
interactionId: String,
|
|
327
|
-
credentials: NSDictionary,
|
|
328
|
-
resolve: @escaping RCTPromiseResolveBlock,
|
|
329
|
-
reject: @escaping RCTPromiseRejectBlock
|
|
330
|
-
) {
|
|
331
|
-
asyncCall(resolve, reject) {
|
|
332
|
-
try await self.getCore().holderSubmitProof(
|
|
333
|
-
interactionId: interactionId,
|
|
334
|
-
submitCredentials: try deserialize(credentials)
|
|
335
|
-
)
|
|
336
|
-
return nil as NSDictionary?
|
|
337
|
-
}
|
|
338
|
-
}
|
|
339
|
-
|
|
340
312
|
@objc(holderSubmitProofV2:submission:resolver:rejecter:)
|
|
341
313
|
func holderSubmitProofV2(
|
|
342
314
|
interactionId: String,
|