cadrumo.adapters.persistence.profile.review_package_recipient_registry module

Secure-object adapter for the trusted recipient registry capability.

The application layer owns recipient DTOs and registration policy. This adapter owns the bucket namespace and secure-object encoding, translating storage failures into the application’s registered registry error before they cross the port boundary.

Core types: SecureObjectRepository.

class RecipientFingerprintRegistryAdapter(*, repository)[source]

Bases: RecipientFingerprintRegistryRepositoryPort

Bind the trusted-recipient port to one bucket’s encrypted object store.

Parameters:

repository (SecureObjectRepository)

load()[source]

Load the register, preserving an absent row as an empty register.

Return type:

RecipientFingerprintRegister

save(register)[source]

Persist one validated register as the bucket’s encrypted singleton.

Return type:

None

Parameters:

register (RecipientFingerprintRegister)

build_recipient_fingerprint_registry_ports(*, bucket_id)[source]

Bind the trusted-recipient registry to one profile bucket.

Return type:

RecipientFingerprintRegistryPorts

Parameters:

bucket_id (str)