Save profile keypackage bundle

This commit is contained in:
Kgothatso Ngako committed 2026-06-19 10:51:39 +03:00
1 parent 24cb4db9a9
commit 3b9be3a9dd
13 files changed
+281 -51

No files matched your search

@@ -102,6 +102,12 @@ fun LocalKeyManager.nostrPrivateKey(): PrivateKey {
return derivePrivateKey(path).privateKey
}
fun LocalKeyManager.nsecPassword(): String {
return Crypto.hash160(
nostrPrivateKey().value
).byteVector().toHex()
}
fun LocalKeyManager.nostrPublicKey(): HexKey {
return KeyPair(
privKey = nostrPrivateKey().value.toByteArray()