Skip to content

feat: file mode — create_file_intent() (v1.3.0)#6

Merged
ValidPay-io merged 1 commit into
mainfrom
feat/099-file-mode
Jun 16, 2026
Merged

feat: file mode — create_file_intent() (v1.3.0)#6
ValidPay-io merged 1 commit into
mainfrom
feat/099-file-mode

Conversation

@ValidPay-io

Copy link
Copy Markdown
Owner

Prompt 099 Phase 6 (Python SDK). Adds create_file_intent() to seal raw file bytes (PDF/image/DOCX) end-to-end with split-key + file metadata; adds encrypt_bytes()/decrypt_bytes() (encrypt/decrypt delegate). Tests for binary round-trip + AAD mismatch pass. v1.3.0 + CHANGELOG. (Pairs with API PR #104 file-metadata fields.)

Prompt 099 Phase 6 (Python SDK). Adds create_file_intent(document_type, file,
*, file_name, file_content_type, valid_from, valid_until, split_key): seals a
raw file (PDF/image/DOCX bytes) end-to-end — AES-256-GCM-encrypts the bytes
locally (split-key by default), commits over the ciphertext, and registers it
with the new file metadata fields so verifiers download the correct
type/extension. A verifier decrypts back the exact original bytes.

Adds low-level encrypt_bytes()/decrypt_bytes() (encrypt()/decrypt() now
delegate). Tests for the binary round-trip + AAD mismatch. Bumped to 1.3.0;
CHANGELOG updated.
@ValidPay-io
ValidPay-io merged commit 2469bd2 into main Jun 16, 2026
@ValidPay-io
ValidPay-io deleted the feat/099-file-mode branch June 16, 2026 20:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant