betterwithage commited on
Commit
6ea3c60
·
verified ·
1 Parent(s): 738f610

chore(sync): mirror backend .py + Dockerfile to Space (hf-sync-backend)

Browse files

Automated backend sync from szl-holdings/a11oy main via hf-sync-backend.
Updated (differed from the Space): routers/series_a_control_plane.py
Deleted (gone from the repo + Dockerfile COPY set): (none)

Keeps the Space-built backend (serve.py + the Dockerfile-COPY'd .py
modules) identical to GitHub main so the Space never rebuilds from a
stale backend, new endpoints don't 404 there, and orphaned modules
removed from the repo don't linger in the Space tree.

Files changed (1) hide show
  1. routers/series_a_control_plane.py +5 -1
routers/series_a_control_plane.py CHANGED
@@ -186,7 +186,11 @@ class ReceiptSigner:
186
 
187
  @property
188
  def keyid(self) -> str | None:
189
- return _sha(self.public_pem.encode("utf-8")) if self.public_pem else None
 
 
 
 
190
 
191
  def sign(self, payload: Mapping[str, Any]) -> dict[str, Any]:
192
  body = _canonical(dict(payload))
 
186
 
187
  @property
188
  def keyid(self) -> str | None:
189
+ return (
190
+ _sha(self.public_pem.strip().encode("utf-8"))
191
+ if self.public_pem
192
+ else None
193
+ )
194
 
195
  def sign(self, payload: Mapping[str, Any]) -> dict[str, Any]:
196
  body = _canonical(dict(payload))