From 2c82e9beb179b39d7aa16eec438a13bc111a2d4e Mon Sep 17 00:00:00 2001 From: HashEngineering Date: Sun, 9 Jul 2023 07:52:05 -0700 Subject: [PATCH 1/2] fix: render the platform private/public key (base64) correctly * The last byte was always set to zero (0x00) --- .../wallet/ui/more/masternode_keys/MasternodeKeysViewModel.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/wallet/src/de/schildbach/wallet/ui/more/masternode_keys/MasternodeKeysViewModel.kt b/wallet/src/de/schildbach/wallet/ui/more/masternode_keys/MasternodeKeysViewModel.kt index 4405854076..92719ec47a 100644 --- a/wallet/src/de/schildbach/wallet/ui/more/masternode_keys/MasternodeKeysViewModel.kt +++ b/wallet/src/de/schildbach/wallet/ui/more/masternode_keys/MasternodeKeysViewModel.kt @@ -309,7 +309,7 @@ class MasternodeKeysViewModel @Inject constructor( val bytes = ByteArray(64) decryptedKey.privKeyBytes.copyInto(bytes, 0, 0, 32) // public key bytes have a 0x00 prefix byte that is ignored - decryptedKey.pubKey.copyInto(bytes, 32, 1, 32) + decryptedKey.pubKey.copyInto(bytes, 32, 1, 33) val privatePublicKeyBase64 = Base64.toBase64String(bytes) return MasternodeKeyInfo(key, privateKeyHex, privateKeyWif, privatePublicKeyBase64) From f49064968c76c9e7ee395ea625824f10e4b2d4bc Mon Sep 17 00:00:00 2001 From: HashEngineering Date: Sun, 16 Jul 2023 22:59:29 -0700 Subject: [PATCH 2/2] chore: update dashj to 19.0.4-SNAPSHOT --- build.gradle | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/build.gradle b/build.gradle index 793e68a869..2a424d21af 100644 --- a/build.gradle +++ b/build.gradle @@ -3,7 +3,7 @@ buildscript { kotlin_version = '1.8.22' coroutines_version = '1.6.1' ok_http_version = '4.9.1' - dashjVersion = '19.0.3' + dashjVersion = '19.0.4-SNAPSHOT' hiltVersion = '2.45' hiltWorkVersion = '1.0.0' workRuntimeVersion='2.7.1'