MCPcopy Create free account
hub / github.com/openai/plugins / update_digest_field

Function update_digest_field

plugins/codex-security/scripts/workbench_target.py:74–78  ·  view source on GitHub ↗
(digest: Any, label: bytes, value: bytes)

Source from the content-addressed store, hash-verified

72
73
74def update_digest_field(digest: Any, label: bytes, value: bytes) -> None:
75 digest.update(len(label).to_bytes(4, "big"))
76 digest.update(label)
77 digest.update(len(value).to_bytes(8, "big"))
78 digest.update(value)
79
80
81def worktree_content_digest(target: Path) -> str:

Calls

no outgoing calls

Tested by

no test coverage detected