You are right! There were a few issues with the previous code. The main issue was that I was not properly handling the version parameter when generating the CUUID. I have now fixed the issue by correctly setting the version parameter when calling uuid.UUID
.
Here is the updated code:
"""
CUUIDs are content-addressed universally unique identifiers. This module provides
functions for generating and verifying CUUIDs.
**Note** that the current implementation only supports SHA2 CUUIDs.