 extension ClinkPeer {
     public func toDict() -> [String: Any] {
         return [
-            "id": id.uuidString,
+            "id": id,
             "data": data
         ]
     }

            self.data = data
        }
        
        public required init(id: UUID) {
            self.id = id
            self.data = [:]
        }


public protocol ClinkPeerManager: class {
    func save(peer: ClinkPeer)
    func getSavedPeer(withId peerId: String) -> ClinkPeer?
    func getSavedPeers() -> [ClinkPeer]
    func delete(peer: ClinkPeer)
}

public protocol ClinkPeer {
    var id: String { get set }
    var data: [String: Any] { get set }
    
    init?(dict: [String: Any])
    init(id: String)
    
    func toDict() -> [String: Any]
}
