You have to restore the phone to unlock it?
No, If you go to iphoneox.com and type in your IMEI # and it says "unlocked". You put in a sim card that is NOT At&t and plug iphone into computer open up itunes. Itunes will communicate with apple server and unlock your phone.