Copy some functions over from the signal docs

This commit is contained in:
hinuiiik
2026-10-22 20:46:42 -04:00
parent 4d733408eb
commit 2573c12295
2 changed files with 76 additions and 0 deletions
+2
View File
@@ -54,6 +54,8 @@ print("Testing Reporting")
content = "inappropriate message contents"
reportPT, reportCT = alice.report("Bob", content)
decryptedReport = server.decryptReport(reportCT)
print(reportPT)
print(decryptedReport)
if decryptedReport != reportPT:
error("report did not decrypt properly")
print(reportPT)