mirror of
https://github.com/greenart7c3/Amber.git
synced 2026-10-05 19:08:23 +00:00
Update dependencies and migrate to Nip01Crypto
- Upgrade several library versions in `libs.versions.toml`, including activityCompose (1.13.0), coreKtx (1.18.0), quartz (1.06.0), compose_ui (1.10.5), kotlin (2.3.20), and kmpTorResource (409.5.0). - Update `AccountExportService.kt` to use `Nip01Crypto.pubKeyCreate` instead of the deprecated `Nip01.pubKeyCreate` following the Quartz library update.
This commit is contained in:
@@ -14,7 +14,7 @@ import com.greenart7c3.nostrsigner.models.AccountExportData
|
||||
import com.vitorpamplona.quartz.nip01Core.core.hexToByteArray
|
||||
import com.vitorpamplona.quartz.nip01Core.core.toHexKey
|
||||
import com.vitorpamplona.quartz.nip01Core.crypto.KeyPair
|
||||
import com.vitorpamplona.quartz.nip01Core.crypto.Nip01
|
||||
import com.vitorpamplona.quartz.nip01Core.crypto.Nip01Crypto
|
||||
import com.vitorpamplona.quartz.nip01Core.signers.NostrSignerInternal
|
||||
import com.vitorpamplona.quartz.nip19Bech32.toNpub
|
||||
import com.vitorpamplona.quartz.nip49PrivKeyEnc.Nip49
|
||||
@@ -53,7 +53,7 @@ object AccountExportService {
|
||||
|
||||
val accountData = AccountExportData.fromJson(line)
|
||||
val privKey = Nip49().decrypt(accountData.nsec, password)
|
||||
val hexKey = Nip01.pubKeyCreate(Hex.decode(privKey))
|
||||
val hexKey = Nip01Crypto.pubKeyCreate(Hex.decode(privKey))
|
||||
val account = Account(
|
||||
hexKey = hexKey.toHexKey(),
|
||||
npub = hexKey.toNpub(),
|
||||
|
||||
@@ -1,24 +1,24 @@
|
||||
[versions]
|
||||
activityCompose = "1.12.4"
|
||||
activityCompose = "1.13.0"
|
||||
appcompat = "1.7.1"
|
||||
biometricKtx = "1.2.0-alpha05"
|
||||
core = "3.5.4"
|
||||
coreKtx = "1.17.0"
|
||||
datastorePreferences = "1.2.0"
|
||||
coreKtx = "1.18.0"
|
||||
datastorePreferences = "1.2.1"
|
||||
espressoCore = "3.7.0"
|
||||
junit = "4.13.2"
|
||||
junitVersion = "1.3.0"
|
||||
lifecycle_version = "2.10.0"
|
||||
material3 = "1.4.0"
|
||||
nav_version = "2.9.7"
|
||||
quartz = "1.05.1"
|
||||
compose_ui = "1.10.4"
|
||||
quartz = "1.06.0"
|
||||
compose_ui = "1.10.5"
|
||||
richtextUi = "a02a03a3e9"
|
||||
roomKtx = "2.8.4"
|
||||
securityCryptoKtx = "1.1.0"
|
||||
zxingAndroidEmbedded = "4.3.0"
|
||||
okhttp = "5.3.2"
|
||||
kotlin = "2.3.10"
|
||||
kotlin = "2.3.20"
|
||||
workRuntimeKtx = "2.11.1"
|
||||
agp = "9.1.0"
|
||||
ktlint = "14.1.0"
|
||||
@@ -28,11 +28,11 @@ storage = "2.2.0"
|
||||
jna = "5.18.1"
|
||||
materialIconsExtended = "1.7.8"
|
||||
collections = "0.4.0"
|
||||
pagingCommon = "3.4.1"
|
||||
pagingCommon = "3.4.2"
|
||||
mockk = "1.14.9"
|
||||
coroutinesTest = "1.10.2"
|
||||
kmpTor = "2.6.0"
|
||||
kmpTorResource = "408.19.0"
|
||||
kmpTorResource = "409.5.0"
|
||||
|
||||
[libraries]
|
||||
datastore-preferences = { module = "androidx.datastore:datastore-preferences", version.ref = "datastorePreferences" }
|
||||
|
||||
Reference in New Issue
Block a user