Part of edX code.
Opaque-keys is an API used by edx-platform to construct database keys. "Opaque keys" are used where the application should be agnostic with respect to key format, and uses an API to get information about the key and to construct new keys.
See the edx-platform wiki documentation for more detail.