cadrumo.application.modelo.review_package_recipient_registry_ports module

Application-owned persistence capability for trusted recipients.

Recipient registration is separate from recipient encryption: this capability stores and retrieves the taxpayer’s trusted-public-key register, while the recipient-encryption capability seals and opens package bytes. The executable composition root supplies this required bucket-scoped capability; storage namespaces, secure-object repositories, and their failures remain outward.

class RecipientFingerprintRegistryRepositoryPort(*args, **kwargs)[source]

Bases: Protocol

Load and save the complete trusted-recipient register for one bucket.

load()[source]

Return the current register, or an empty register when absent.

Return type:

RecipientFingerprintRegister

save(register)[source]

Persist one validated register as the bucket’s current state.

Return type:

None

Parameters:

register (RecipientFingerprintRegister)

class RecipientFingerprintRegistryPorts(registry_repository)[source]

Bases: object

Required trusted-recipient authority for one bucket-scoped call.

Parameters:

registry_repository (RecipientFingerprintRegistryRepositoryPort)

registry_repository: RecipientFingerprintRegistryRepositoryPort
class RecipientFingerprintRegistryPortsFactory(*args, **kwargs)[source]

Bases: Protocol

Construct the trusted-recipient capability for one bucket.