Is there a doc or spec for the OTA protocol?

Hi,
I am looking for the protocol of the OTA updater implemented in the OTA library.
Any pointer will be much appreciated.
Thanks.
Jim