diff --git a/.yarn/patches/@hyperledger-indy-vdr-react-native-npm-0.2.2-627d424b96.patch b/.yarn/patches/@hyperledger-indy-vdr-react-native-npm-0.2.2-627d424b96.patch new file mode 100644 index 0000000000..8555e52783 --- /dev/null +++ b/.yarn/patches/@hyperledger-indy-vdr-react-native-npm-0.2.2-627d424b96.patch @@ -0,0 +1,173 @@ +diff --git a/android/build.gradle b/android/build.gradle +index 9017d77eb32573415c7922cd83dae5cd792a885f..083320b13d82925625e57b929387a20a6d42c841 100644 +--- a/android/build.gradle ++++ b/android/build.gradle +@@ -59,6 +59,10 @@ def getExt(name) { + return rootProject.ext.get(name) + } + ++def getExtWithFallback(prop, fallback) { ++ return rootProject.ext.has(prop) ? rootProject.ext.get(prop) : fallback ++} ++ + def resolveBuildType() { + def buildType = "debug" + tasks.all({ task -> +@@ -81,7 +85,7 @@ android { + } + + defaultConfig { +- minSdkVersion 21 ++ minSdkVersion getExtWithFallback('minSdkVersion', '21') + targetSdkVersion getExt('targetSdkVersion') + + externalNativeBuild { +diff --git a/build/NativeBindings.d.ts b/build/NativeBindings.d.ts +index e3106250eb275f591ab53e42dc37cdf888d3406b..f3f2dcd9256d2addeeb4ce83afb3733c9d911f39 100644 +--- a/build/NativeBindings.d.ts ++++ b/build/NativeBindings.d.ts +@@ -11,6 +11,11 @@ export interface NativeBindings { + setCacheDirectory(options: { + path: string; + }): ReturnObject; ++ setLedgerTxnCache(options: { ++ capacity: number; ++ expiry_offset_ms: number; ++ path?: string; ++ }): ReturnObject; + setDefaultLogger(options: Record): ReturnObject; + setProtocolVersion(options: { + version: number; +diff --git a/build/ReactNativeIndyVdr.d.ts b/build/ReactNativeIndyVdr.d.ts +index 034c2d4527ef08eac1941ad784e497a948229ef1..b48eb78bc63c65641bbcf52dce713d4ad7a84a4f 100644 +--- a/build/ReactNativeIndyVdr.d.ts ++++ b/build/ReactNativeIndyVdr.d.ts +@@ -14,6 +14,11 @@ export declare class ReactNativeIndyVdr implements IndyVdr { + setCacheDirectory(options: { + path: string; + }): void; ++ setLedgerTxnCache(options: { ++ capacity: number; ++ expiry_offset_ms: number; ++ path?: string; ++ }): void; + setDefaultLogger(): void; + setProtocolVersion(options: { + version: number; +diff --git a/build/ReactNativeIndyVdr.js b/build/ReactNativeIndyVdr.js +index 16bdc5e8ee395295afa0ec255fee1e2c7a220c57..5fb112fa5df10aeffdd9d42a324702a6b25c3db1 100644 +--- a/build/ReactNativeIndyVdr.js ++++ b/build/ReactNativeIndyVdr.js +@@ -57,6 +57,10 @@ class ReactNativeIndyVdr { + const serializedOptions = (0, serialize_1.serializeArguments)(options); + this.indyVdr.setCacheDirectory(serializedOptions); + } ++ setLedgerTxnCache(options) { ++ const serializedOptions = (0, serialize_1.serializeArguments)(options); ++ this.indyVdr.setLedgerTxnCache(serializedOptions); ++ } + setDefaultLogger() { + this.handleError(this.indyVdr.setDefaultLogger({})); + } +diff --git a/build/ReactNativeIndyVdr.js.map b/build/ReactNativeIndyVdr.js.map +index 219c2d0156e6e3395061e41567831414c320e410..30fb92ec803052f901cf2858be8bda1569196a2c 100644 +--- a/build/ReactNativeIndyVdr.js.map ++++ b/build/ReactNativeIndyVdr.js.map +@@ -1 +1 @@ +-{"version":3,"file":"ReactNativeIndyVdr.js","sourceRoot":"","sources":["../src/ReactNativeIndyVdr.ts"],"names":[],"mappings":";;;AAyCA,kEAAsF;AAEtF,2CAAgD;AAEhD,MAAa,kBAAkB;IAG7B,YAAmB,QAAwB;QAYnC,cAAS,GAAG,CAAC,MAA8B,EAAiB,EAAE;YACpE,OAAO,IAAI,OAAO,CAAC,CAAC,OAAO,EAAE,MAAM,EAAE,EAAE;gBACrC,MAAM,GAAG,GAAa,CAAC,EAAE,SAAS,EAAE,EAAE,EAAE;oBACtC,IAAI,SAAS,KAAK,CAAC;wBAAE,MAAM,CAAC,IAAI,CAAC,eAAe,EAAE,CAAC,CAAA;oBACnD,OAAO,EAAE,CAAA;gBACX,CAAC,CAAA;gBAED,MAAM,CAAC,GAAG,CAAC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,CAAC,CAAA;QACrD,OAAO,IAAI,CAAC,WAAW,CAAC,IAAI,CAAC,OAAO,CAAC,cAAc,CAAC,iBAAiB,CAAC,CAAC,CAAA;IACzE,CAAC;IAEM,wBAAwB,CAAC,OAAkC;QAChE,MAAM,iBAAiB,GAAG,IAAA,8BAAkB,EAAC,OAAO,CAAC,CAAA;QACrD,OAAO,IAAA,2CAAyB,EAAC,IAAI,CAAC,WAAW,CAAC,IAAI,CAAC,OAAO,CAAC,wBAAwB,CAAC,iBAAiB,CAAC,CAAC,CAAC,CAAA;IAC9G,CAAC;IAEM,kBAAkB,CAAC,OAAqE;QAC7F,MAAM,iBAAiB,GAAG,IAAA,8BAAkB,EAAC,OAAO,CAAC,CAAA;QACrD,IAAI,CAAC,OAAO,CAAC,kBAAkB,CAAC,iBAAiB,CAAC,CAAA;IACpD,CAAC;IAEM,wBAAwB,CAAC,OAA2E;QACzG,MAAM,iBAAiB,GAAG,IAAA,8BAAkB,EAAC,OAAO,CAAC,CAAA;QACrD,IAAI,CAAC,OAAO,CAAC,wBAAwB,CAAC,iBAAiB,CAAC,CAAA;IAC1D,CAAC;IAEM,mBAAmB,CAAC,OAAsE;QAC/F,MAAM,iBAAiB,GAAG,IAAA,8BAAkB,EAAC,OAAO,CAAC,CAAA;QACrD,IAAI,CAAC,OAAO,CAAC,mBAAmB,CAAC,iBAAiB,CAAC,CAAA;IACrD,CAAC;IAEM,sCAAsC,CAC3C,OAAyF;QAEzF,MAAM,iBAAiB,GAAG,IAAA,8BAAkB,EAAC,OAAO,CAAC,CAAA;QACrD,IAAI,CAAC,OAAO,CAAC,sCAAsC,CAAC,iBAAiB,CAAC,CAAA;IACxE,CAAC;CACF;AAlTD,gDAkTC"} +\ No newline at end of file +diff --git a/cpp/HostObject.cpp b/cpp/HostObject.cpp +index dca847963687111473125064c58c90b13f7c718b..c5c5e0a8227314809c31e6565bbecc7cce1c5478 100644 +--- a/cpp/HostObject.cpp ++++ b/cpp/HostObject.cpp +@@ -13,6 +13,7 @@ FunctionMap IndyVdrTurboModuleHostObject::functionMapping(jsi::Runtime &rt) { + fMap.insert(std::make_tuple("getCurrentError", &indyVdr::getCurrentError)); + fMap.insert(std::make_tuple("setConfig", &indyVdr::setConfig)); + fMap.insert(std::make_tuple("setCacheDirectory", &indyVdr::setCacheDirectory)); ++ fMap.insert(std::make_tuple("setLedgerTxnCache", &indyVdr::setLedgerTxnCache)); + fMap.insert(std::make_tuple("setDefaultLogger", &indyVdr::setDefaultLogger)); + fMap.insert( + std::make_tuple("setProtocolVersion", &indyVdr::setProtocolVersion)); +diff --git a/cpp/include/libindy_vdr.h b/cpp/include/libindy_vdr.h +index 7f61bb9faaa119ea74619c82937c8de838992c0a..6ce64ab2a429b940d117b664033f0e3369171eab 100644 +--- a/cpp/include/libindy_vdr.h ++++ b/cpp/include/libindy_vdr.h +@@ -481,6 +481,8 @@ ErrorCode indy_vdr_resolve(PoolHandle pool_handle, + + ErrorCode indy_vdr_set_cache_directory(FfiStr path); + ++ErrorCode indy_vdr_set_ledger_txn_cache(int32_t capacity, int64_t expiry_offset_ms, FfiStr path); ++ + ErrorCode indy_vdr_set_config(FfiStr config); + + ErrorCode indy_vdr_set_default_logger(void); +diff --git a/cpp/indyVdr.cpp b/cpp/indyVdr.cpp +index 0e3002cc6b504743ac70e777e52c387e26067bda..706134f8ccad62a790ee2f85a0f7b306cdfa5c85 100644 +--- a/cpp/indyVdr.cpp ++++ b/cpp/indyVdr.cpp +@@ -32,6 +32,16 @@ jsi::Value setCacheDirectory(jsi::Runtime &rt, jsi::Object options) { + return createReturnValue(rt, code, nullptr); + }; + ++jsi::Value setLedgerTxnCache(jsi::Runtime &rt, jsi::Object options) { ++ auto capacity = jsiToValue(rt, options, "capacity"); ++ auto expiry_offset_ms = jsiToValue(rt, options, "expiry_offset_ms"); ++ auto path = jsiToValue(rt, options, "path", true); ++ ++ ErrorCode code = indy_vdr_set_ledger_txn_cache(capacity, expiry_offset_ms, path.length() > 0 ? path.c_str() : nullptr); ++ ++ return createReturnValue(rt, code, nullptr); ++}; ++ + jsi::Value setDefaultLogger(jsi::Runtime &rt, jsi::Object options) { + ErrorCode code = indy_vdr_set_default_logger(); + +diff --git a/cpp/indyVdr.h b/cpp/indyVdr.h +index fa48a9253770faf2007913890f8458ffb26864f4..c708f3d483ff71dc90fe54af1a2b2eb087c58b26 100644 +--- a/cpp/indyVdr.h ++++ b/cpp/indyVdr.h +@@ -13,6 +13,7 @@ jsi::Value version(jsi::Runtime &rt, jsi::Object options); + jsi::Value getCurrentError(jsi::Runtime &rt, jsi::Object options); + jsi::Value setConfig(jsi::Runtime &rt, jsi::Object options); + jsi::Value setCacheDirectory(jsi::Runtime &rt, jsi::Object options); ++jsi::Value setLedgerTxnCache(jsi::Runtime &rt, jsi::Object options); + jsi::Value setDefaultLogger(jsi::Runtime &rt, jsi::Object options); + jsi::Value setProtocolVersion(jsi::Runtime &rt, jsi::Object options); + jsi::Value setSocksProxy(jsi::Runtime &rt, jsi::Object options); +diff --git a/cpp/turboModuleUtility.cpp b/cpp/turboModuleUtility.cpp +index 3ff7d9a455748748d84abf076dc29166bd94a717..5a029ea34225d5bb9f5610270677d5ffda80203a 100644 +--- a/cpp/turboModuleUtility.cpp ++++ b/cpp/turboModuleUtility.cpp +@@ -143,7 +143,7 @@ int64_t jsiToValue(jsi::Runtime &rt, jsi::Object &options, const char *name, + bool optional) { + jsi::Value value = options.getProperty(rt, name); + if ((value.isNull() || value.isUndefined()) && optional) +- return 0; ++ return -1; + + if (value.isNumber()) + return value.asNumber(); +@@ -169,7 +169,7 @@ int32_t jsiToValue(jsi::Runtime &rt, jsi::Object &options, const char *name, + bool optional) { + jsi::Value value = options.getProperty(rt, name); + if ((value.isNull() || value.isUndefined()) && optional) +- return 0; ++ return -1; + + if (value.isNumber()) + return value.asNumber(); +diff --git a/package.json b/package.json +index 084a7146e124e07cd3860819b9211be7d2369806..b911f8c6c360caea06946a3076e5148d5018c6ed 100644 +--- a/package.json ++++ b/package.json +@@ -58,7 +58,7 @@ + "binary": { + "module_name": "indy_vdr", + "module_path": "native", +- "remote_path": "v0.4.1", ++ "remote_path": "v0.4.3", + "host": "https://github.com/hyperledger/indy-vdr/releases/download/", + "package_name": "library-ios-android.tar.gz" + }, diff --git a/.yarn/patches/@hyperledger-indy-vdr-shared-npm-0.2.2-b989282fc6.patch b/.yarn/patches/@hyperledger-indy-vdr-shared-npm-0.2.2-b989282fc6.patch new file mode 100644 index 0000000000..99e2283da3 --- /dev/null +++ b/.yarn/patches/@hyperledger-indy-vdr-shared-npm-0.2.2-b989282fc6.patch @@ -0,0 +1,16 @@ +diff --git a/build/types/IndyVdr.d.ts b/build/types/IndyVdr.d.ts +index 99f5d50a851462c8c41e52ceb49795feebce0b4e..3aa7890e1f3c422daa6ec82fd6b42d0b924d18b5 100644 +--- a/build/types/IndyVdr.d.ts ++++ b/build/types/IndyVdr.d.ts +@@ -11,6 +11,11 @@ export interface IndyVdr { + setCacheDirectory(options: { + path: string; + }): void; ++ setLedgerTxnCache(options: { ++ capacity: number; ++ expiry_offset_ms: number; ++ path?: string; ++ }): void; + setDefaultLogger(): void; + setProtocolVersion(options: { + version: number; diff --git a/package.json b/package.json index cea614c85b..143e75d309 100644 --- a/package.json +++ b/package.json @@ -56,6 +56,8 @@ "@react-navigation/stack": "6.0.11", "@types/node": "16.9.6", "@credo-ts/react-hooks": "patch:@credo-ts/react-hooks@npm%3A0.6.0#./.yarn/patches/@credo-ts-react-hooks-npm-0.6.0-3c59ce13d2.patch", - "@sphereon/pex": "patch:@sphereon/pex@npm%3A3.3.3#./.yarn/patches/@sphereon-pex-npm-3.3.3-144d9252ec.patch" + "@sphereon/pex": "patch:@sphereon/pex@npm%3A3.3.3#./.yarn/patches/@sphereon-pex-npm-3.3.3-144d9252ec.patch", + "@hyperledger/indy-vdr-react-native@0.2.2": "patch:@hyperledger/indy-vdr-react-native@npm%3A0.2.2#./.yarn/patches/@hyperledger-indy-vdr-react-native-npm-0.2.2-627d424b96.patch", + "@hyperledger/indy-vdr-shared@0.2.2": "patch:@hyperledger/indy-vdr-shared@npm%3A0.2.2#./.yarn/patches/@hyperledger-indy-vdr-shared-npm-0.2.2-b989282fc6.patch" } } diff --git a/packages/legacy/core/App/utils/agent.ts b/packages/legacy/core/App/utils/agent.ts index 074fcf360c..34ea034d97 100644 --- a/packages/legacy/core/App/utils/agent.ts +++ b/packages/legacy/core/App/utils/agent.ts @@ -32,14 +32,23 @@ import { indyVdr } from '@hyperledger/indy-vdr-react-native' interface GetAgentModulesOptions { indyNetworks: IndyVdrPoolConfig[] mediatorInvitationUrl?: string + txnCache?: { capacity: number; expiryOffsetMs: number; path?: string } } export type BifoldAgent = Agent> -export function getAgentModules({ indyNetworks, mediatorInvitationUrl }: GetAgentModulesOptions) { +export function getAgentModules({ indyNetworks, mediatorInvitationUrl, txnCache }: GetAgentModulesOptions) { const indyCredentialFormat = new LegacyIndyCredentialFormatService() const indyProofFormat = new LegacyIndyProofFormatService() + if (txnCache) { + indyVdr.setLedgerTxnCache({ + capacity: txnCache.capacity, + expiry_offset_ms: txnCache.expiryOffsetMs, + path: txnCache.path, + }) + } + return { askar: new AskarModule({ ariesAskar, diff --git a/yarn.lock b/yarn.lock index be711fde02..ac754be499 100644 --- a/yarn.lock +++ b/yarn.lock @@ -4731,6 +4731,19 @@ __metadata: languageName: node linkType: hard +"@hyperledger/indy-vdr-react-native@patch:@hyperledger/indy-vdr-react-native@npm%3A0.2.2#./.yarn/patches/@hyperledger-indy-vdr-react-native-npm-0.2.2-627d424b96.patch::locator=aries-bifold-root%40workspace%3A.": + version: 0.2.2 + resolution: "@hyperledger/indy-vdr-react-native@patch:@hyperledger/indy-vdr-react-native@npm%3A0.2.2#./.yarn/patches/@hyperledger-indy-vdr-react-native-npm-0.2.2-627d424b96.patch::version=0.2.2&hash=28418c&locator=aries-bifold-root%40workspace%3A." + dependencies: + "@hyperledger/indy-vdr-shared": 0.2.2 + "@mapbox/node-pre-gyp": ^1.0.10 + peerDependencies: + react: ">= 16" + react-native: ">= 0.66.0" + checksum: 6f2866e6363d14c3dfc48e78fc66bffbfa40666e3a8cd42354f5fa9f9870ef3a679b33207b0f9366812da16a7ded9e0b94ebcfdaed115e442dcf36260d4ec9a5 + languageName: node + linkType: hard + "@hyperledger/indy-vdr-shared@npm:0.2.2": version: 0.2.2 resolution: "@hyperledger/indy-vdr-shared@npm:0.2.2" @@ -4738,6 +4751,13 @@ __metadata: languageName: node linkType: hard +"@hyperledger/indy-vdr-shared@patch:@hyperledger/indy-vdr-shared@npm%3A0.2.2#./.yarn/patches/@hyperledger-indy-vdr-shared-npm-0.2.2-b989282fc6.patch::locator=aries-bifold-root%40workspace%3A.": + version: 0.2.2 + resolution: "@hyperledger/indy-vdr-shared@patch:@hyperledger/indy-vdr-shared@npm%3A0.2.2#./.yarn/patches/@hyperledger-indy-vdr-shared-npm-0.2.2-b989282fc6.patch::version=0.2.2&hash=4d1d6e&locator=aries-bifold-root%40workspace%3A." + checksum: c9b0576703be02428c3d0a0b39474ebca3b2f49c5402f7450003b72157d0bd010fd4dff436d4de422f9b6ea4de05361fa41dc8c470e462eaecb9407474dc4391 + languageName: node + linkType: hard + "@iarna/toml@npm:2.2.5": version: 2.2.5 resolution: "@iarna/toml@npm:2.2.5"