This commit is contained in:
greenart7c3
2023-10-11 09:47:31 -03:00
2 changed files with 3 additions and 10 deletions
+2 -2
View File
@@ -12,8 +12,8 @@ android {
applicationId "com.greenart7c3.nostrsigner"
minSdk 26
targetSdk 34
versionCode 24
versionName "0.4.5"
versionCode 25
versionName "0.4.6"
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
vectorDrawables {
@@ -71,18 +71,11 @@ object AmberUtils {
decryptZapEvent(data, account)
}
SignerType.NIP04_DECRYPT -> {
var decryptedContent = CryptoUtils.decryptNIP04(
val decryptedContent = CryptoUtils.decryptNIP04(
data,
account.keyPair.privKey,
Hex.decode(pubKey)
)
if (decryptedContent.contains("?iv=", ignoreCase = true)) {
decryptedContent = CryptoUtils.decryptNIP04(
decryptedContent,
account.keyPair.privKey,
Hex.decode(pubKey)
)
}
decryptedContent
}
SignerType.NIP04_ENCRYPT -> {