@requestnetwork/epk-decryption 0.3.35-next.1862 → 0.3.35-next.1863

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.
@@ -27,7 +27,7 @@ class EthereumPrivateKeyDecryptionProvider {
27
27
  * @returns the data decrypted
28
28
  */
29
29
  decrypt(encryptedData, identity) {
30
- return (0, tslib_1.__awaiter)(this, void 0, void 0, function* () {
30
+ return tslib_1.__awaiter(this, void 0, void 0, function* () {
31
31
  if (encryptedData.type !== types_1.EncryptionTypes.METHOD.ECIES) {
32
32
  throw Error(`The data must be encrypted with ${types_1.EncryptionTypes.METHOD.ECIES}`);
33
33
  }
@@ -50,7 +50,7 @@ class EthereumPrivateKeyDecryptionProvider {
50
50
  * @returns true if the identity is registered, false otherwise
51
51
  */
52
52
  isIdentityRegistered(identity) {
53
- return (0, tslib_1.__awaiter)(this, void 0, void 0, function* () {
53
+ return tslib_1.__awaiter(this, void 0, void 0, function* () {
54
54
  return Array.from(this.decryptionParametersDictionary.keys()).some((address) => identity.value.toLowerCase() === address.toLowerCase());
55
55
  });
56
56
  }