device key, serialization