@functionland/react-native-fula 1.2.3 → 1.2.4
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.
|
@@ -478,8 +478,8 @@ public class FulaModule extends ReactContextBaseJavaModule {
|
|
|
478
478
|
String cid_encrypted = Cryptography.encryptMsg(this.rootConfig.getCid(), this.secretKeyGlobal);
|
|
479
479
|
String private_ref_encrypted = Cryptography.encryptMsg(this.rootConfig.getPrivate_ref(), this.secretKeyGlobal);
|
|
480
480
|
|
|
481
|
-
sharedPref.add("cid_encrypted_" + this.identityEncryptedGlobal, cid_encrypted);
|
|
482
|
-
sharedPref.add("private_ref_encrypted_" + this.identityEncryptedGlobal, private_ref_encrypted);
|
|
481
|
+
sharedPref.add("FULA_ENC_V2:cid_encrypted_" + this.identityEncryptedGlobal, cid_encrypted);
|
|
482
|
+
sharedPref.add("FULA_ENC_V2:private_ref_encrypted_" + this.identityEncryptedGlobal, private_ref_encrypted);
|
|
483
483
|
return true;
|
|
484
484
|
} else {
|
|
485
485
|
return false;
|
|
@@ -497,13 +497,13 @@ public class FulaModule extends ReactContextBaseJavaModule {
|
|
|
497
497
|
}
|
|
498
498
|
SecretKey secretKey = Cryptography.generateKey(identity);
|
|
499
499
|
String identity_encrypted = Cryptography.encryptMsg(Arrays.toString(identity), secretKey);
|
|
500
|
-
sharedPref.remove("cid_encrypted_"+ identity_encrypted);
|
|
501
|
-
sharedPref.remove("private_ref_encrypted_"+identity_encrypted);
|
|
500
|
+
sharedPref.remove("FULA_ENC_V2:cid_encrypted_"+ identity_encrypted);
|
|
501
|
+
sharedPref.remove("FULA_ENC_V2:private_ref_encrypted_"+identity_encrypted);
|
|
502
502
|
|
|
503
503
|
//TODO: Should also remove peerid @Mahdi
|
|
504
504
|
|
|
505
|
-
sharedPref.remove("cid_encrypted_"+ identity_encrypted);
|
|
506
|
-
sharedPref.remove("private_ref_encrypted_"+ identity_encrypted);
|
|
505
|
+
sharedPref.remove("FULA_ENC_V2:cid_encrypted_"+ identity_encrypted);
|
|
506
|
+
sharedPref.remove("FULA_ENC_V2:private_ref_encrypted_"+ identity_encrypted);
|
|
507
507
|
|
|
508
508
|
this.rootConfig = null;
|
|
509
509
|
this.secretKeyGlobal = null;
|
|
@@ -591,8 +591,8 @@ public class FulaModule extends ReactContextBaseJavaModule {
|
|
|
591
591
|
Log.d("ReactNative", "this.rootCid is empty.");
|
|
592
592
|
//Load from keystore
|
|
593
593
|
|
|
594
|
-
String cid_encrypted_fetched = sharedPref.getValue("cid_encrypted_"+ identity_encrypted);
|
|
595
|
-
String private_ref_encrypted_fetched = sharedPref.getValue("private_ref_encrypted_"+identity_encrypted);
|
|
594
|
+
String cid_encrypted_fetched = sharedPref.getValue("FULA_ENC_V2:cid_encrypted_"+ identity_encrypted);
|
|
595
|
+
String private_ref_encrypted_fetched = sharedPref.getValue("FULA_ENC_V2:private_ref_encrypted_"+identity_encrypted);
|
|
596
596
|
Log.d("ReactNative", "Here1");
|
|
597
597
|
String cid = "";
|
|
598
598
|
String private_ref = "";
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@functionland/react-native-fula",
|
|
3
|
-
"version": "1.2.
|
|
3
|
+
"version": "1.2.4",
|
|
4
4
|
"description": "This package is a bridge to use the Fula libp2p protocols in the react-native which is using wnfs",
|
|
5
5
|
"main": "lib/commonjs/index",
|
|
6
6
|
"module": "lib/module/index",
|