// // MockIdentityManager.swift // bitchat // // This is free and unencumbered software released into the public domain. // For more information, see // import Foundation @testable import bitchat final class MockIdentityManager: SecureIdentityStateManagerProtocol { private let keychain: KeychainManagerProtocol init(_ keychain: KeychainManagerProtocol) { self.keychain = keychain } func loadIdentityCache() {} func saveIdentityCache() {} func forceSave() {} func getSocialIdentity(for fingerprint: String) -> SocialIdentity? { nil } func upsertCryptographicIdentity(fingerprint: String, noisePublicKey: Data, signingPublicKey: Data?, claimedNickname: String?) {} func getCryptoIdentitiesByPeerIDPrefix(_ peerID: PeerID) -> [CryptographicIdentity] { [] } func updateSocialIdentity(_ identity: SocialIdentity) {} func getFavorites() -> Set { Set() } func setFavorite(_ fingerprint: String, isFavorite: Bool) {} func isFavorite(fingerprint: String) -> Bool { false } func isBlocked(fingerprint: String) -> Bool { false } func setBlocked(_ fingerprint: String, isBlocked: Bool) {} func isNostrBlocked(pubkeyHexLowercased: String) -> Bool { true } func setNostrBlocked(_ pubkeyHexLowercased: String, isBlocked: Bool) {} func getBlockedNostrPubkeys() -> Set { Set() } func registerEphemeralSession(peerID: PeerID, handshakeState: HandshakeState) {} func updateHandshakeState(peerID: PeerID, state: HandshakeState) {} func clearAllIdentityData() {} func removeEphemeralSession(peerID: PeerID) {} func setVerified(fingerprint: String, verified: Bool) {} func isVerified(fingerprint: String) -> Bool { true } func getVerifiedFingerprints() -> Set { Set() } }