 }
 
 
-public class SecKeyPair {
+public class SecKeyPair : Codable {
 
   public let privateKey: SecKey
   public let publicKey: SecKey

    return try encodedPublicKey() == keyData
  }

}

    self.publicKey = publicKey
  }

  public convenience init(privateKeyRef: Data, publicKeyRef: Data) throws {

    let privateKey = try SecKey.load(persistentReference: privateKeyRef)
    let publicKey = try SecKey.load(persistentReference: publicKeyRef)
