cadrumo.adapters.persistence.storage.custody.sentinel_contract module¶
Canonical DEK-sentinel proof contract for current profile custody.
- profile_custody_sentinel_aad(envelope)[source]¶
Derive the only AAD accepted for a current-format DEK sentinel.
- Return type:
- Parameters:
envelope (ProfileCustodyEnvelope)
- profile_custody_sentinel_aad_for(*, profile_id, dek_epoch)[source]¶
Derive sentinel AAD from the immutable custody identity alone.
- profile_custody_sentinel_plaintext(*, profile_id, dek_epoch, data_format_version=1)[source]¶
Derive the non-caller-selectable sentinel plaintext for one DEK epoch.
- class ProfileCustodySentinelRecord(**data)[source]¶
Bases:
BaseModelStrict proof input consumed before a custody transaction can publish it.
- Parameters:
data (Any)
- schema_version: Literal[1]¶
- product: Literal['cadrumo']¶
- profile_id: UUID¶
- dek_epoch: str¶
- data_format_version: Literal[1]¶
- purpose: Literal['profile-dek-sentinel/v1']¶
- nonce_b64: str¶
- ciphertext_b64: str¶
- tag_b64: str¶