PrivateKeyStore

abstract class PrivateKeyStore

Constructors

Link copied to clipboard
constructor()

Functions

Link copied to clipboard
abstract suspend fun deleteBoundSessionKeys(nodeId: String, peerId: String)

Delete the session keys for node nodeId and peer peerId.

Link copied to clipboard
abstract suspend fun deleteKeys(nodeId: String)

Delete the identity and session keys for the node identified by nodeId.

Link copied to clipboard
Link copied to clipboard
suspend fun retrieveIdentityKey(nodeId: String): PrivateKey
Link copied to clipboard
suspend fun retrieveSessionKey(keyId: ByteArray, nodeId: String, peerId: String): PrivateKey
Link copied to clipboard
suspend fun saveIdentityKey(privateKey: PrivateKey)
Link copied to clipboard
suspend fun saveSessionKey(privateKey: PrivateKey, keyId: ByteArray, nodeId: String, peerId: String? = null)