Save profile keypackage bundle
This commit is contained in:
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()
|
||||
|
||||
Reference in new issue
Block a user