Skip to content
This repository has been archived by the owner on Nov 22, 2024. It is now read-only.

Commit

Permalink
Receiving receipt via federation
Browse files Browse the repository at this point in the history
Signed-off-by: John Andersen <[email protected]>
  • Loading branch information
pdxjohnny committed Oct 17, 2023
1 parent 02789cb commit 187f05e
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion scitt_emulator/federation_activitypub_bovine.py
Original file line number Diff line number Diff line change
Expand Up @@ -231,10 +231,16 @@ async def handle(
if data.get("type") != "Create":
return

# TODO Send federated claim / receipt to SCITT
obj = data.get("object")
if not isinstance(obj, dict):
return

# Send federated claim / receipt to SCITT
content = obj.get("content")

# TODO Entry ID?
receipt = base64.b64decode(content.encode())
logger.info("Federation received new receipt: %r", receipt)
except Exception as ex:
logger.error(ex)
logger.exception(ex)
Expand Down

0 comments on commit 187f05e

Please sign in to comment.