Revert "always return hex key for the get_public_key method"

This reverts commit 225cba295b.
This commit is contained in:
greenart7c3
2024-12-18 15:31:24 -03:00
parent 74b3b9f2a9
commit 1e33f21636
2 changed files with 4 additions and 3 deletions
@@ -357,7 +357,7 @@ class SignerProvider : ContentProvider() {
)
val cursor = MatrixCursor(arrayOf("signature", "result"))
val result = account.signer.keyPair.pubKey.toHexKey()
val result = if (sortOrder == null) account.signer.keyPair.pubKey.toNpub() else account.signer.keyPair.pubKey.toHexKey()
cursor.addRow(arrayOf<Any>(result, result))
return cursor
}
@@ -110,10 +110,11 @@ fun SingleEventHomeScreen(
val sig =
if (intentData.type == SignerType.CONNECT) {
intentData.bunkerRequest!!.nostrConnectSecret.ifBlank { "ack" }
} else {
} else if (intentData.bunkerRequest != null) {
account.signer.keyPair.pubKey.toHexKey()
} else {
account.signer.keyPair.pubKey.toNpub()
}
coroutineScope.launch {
sendResult(
context,