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

Commit

Permalink
Pass entry_id in created_receipt blob
Browse files Browse the repository at this point in the history
Signed-off-by: John Andersen <[email protected]>
  • Loading branch information
pdxjohnny committed Oct 19, 2023
1 parent 3b841a7 commit 7ce8128
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion scitt_emulator/federation_activitypub_bovine.py
Original file line number Diff line number Diff line change
Expand Up @@ -201,6 +201,7 @@ def created_entry(
"service_parameters": base64.b64encode(
public_service_parameters
).decode(),
"entry_id": entry_id,
"receipt": base64.b64encode(receipt).decode(),
"claim": base64.b64encode(claim).decode(),
}
Expand Down Expand Up @@ -261,8 +262,8 @@ async def handle(
return
logger.info("Federation received new receipt: %r", content)

# TODO Entry ID?
treeAlgorithm = content["treeAlgorithm"]
_entry_id = content["entry_id"]
claim = base64.b64decode(content["claim"].encode())
receipt = base64.b64decode(content["receipt"].encode())
service_parameters = base64.b64decode(
Expand Down

0 comments on commit 7ce8128

Please sign in to comment.