mirror of
https://github.com/greenart7c3/Amber.git
synced 2026-10-05 19:08:23 +00:00
Fix bug where NIP-04 methods were incorrectly calling NIP-44 implementation
This commit is contained in:
@@ -78,7 +78,7 @@ class Account(
|
||||
|
||||
suspend fun nip04Encrypt(plainText: String, toPublicKey: String): String {
|
||||
val signer = getSigner()
|
||||
return signer.signerSync.nip44Encrypt(plainText, toPublicKey)
|
||||
return signer.signerSync.nip04Encrypt(plainText, toPublicKey)
|
||||
}
|
||||
|
||||
suspend fun nip44Decrypt(cipherText: String, fromPublicKey: String): String {
|
||||
@@ -88,7 +88,7 @@ class Account(
|
||||
|
||||
suspend fun nip04Decrypt(cipherText: String, fromPublicKey: String): String {
|
||||
val signer = getSigner()
|
||||
return signer.signerSync.nip44Decrypt(cipherText, fromPublicKey)
|
||||
return signer.signerSync.nip04Decrypt(cipherText, fromPublicKey)
|
||||
}
|
||||
|
||||
suspend fun decrypt(encryptedContent: String, fromPublicKey: String): String {
|
||||
|
||||
Reference in New Issue
Block a user