refactor(vaults): move content-key provenance and the bad-key verdict into vaults

This commit is contained in:
imSp4rky
2026-11-27 10:30:45 -07:00
parent 49b3a48fbd
commit a4531a14bb
13 changed files with 417 additions and 265 deletions
+2 -1
View File
@@ -139,7 +139,8 @@ def decrypt(
server_vault=SimpleNamespace(add_keys=lambda service, keys, track: pushed.append((keys, track))),
)
keys = resolver(vaults, tag="EXAMPLE", source=source)
vaults.flagged.update((flagged or {}).items())
for kid, key in (flagged or {}).items():
vaults.flag_bad_key(kid, key)
path = tmp_path / "video.mp4"
path.write_bytes(b"cipher")
content_keys = {LICENSED: KEY, VAULTED: OTHER_KEY, NULL: "0" * 32, **(flagged or {})}