Skip to content

Commit

Permalink
Deploying to gh-pages from @ 5627825 🚀
Browse files Browse the repository at this point in the history
  • Loading branch information
tobiasBora committed Dec 11, 2024
1 parent 0518e4a commit b39fe74
Show file tree
Hide file tree
Showing 4 changed files with 303 additions and 3 deletions.
Binary file modified teaching/2024_2025_-_Advanced_crypto/advanced_crypto_td_03.pdf
Binary file not shown.
Binary file modified teaching/2024_2025_-_Advanced_crypto/advanced_crypto_tp_01.pdf
Binary file not shown.
8 changes: 7 additions & 1 deletion teaching/2024_2025_-_Advanced_crypto/tp/tp_01.py
Original file line number Diff line number Diff line change
Expand Up @@ -125,12 +125,18 @@ def verify(g, commitments, b, openings, options=Options()):
return (False, "TODO, give here the reason of a potential failure")

def get_bit(bytes_str, i):
"""Function provided: Returns the i-th bit of the byte string bytes_str"""
"""Function provided (don't modify it!): Returns the i-th bit of the byte string bytes_str"""
return 0 if (bytes_str[i // 8] & (128 >> (i % 8))) == 0 else 1

def fiat_shamir_randomness(options, commitments, message):
"""Returns a list of integers 0/1, as used in the fiat-shamir transform."""
print("TODO")
return [0, 1, 1]

def fiat_shamir_proof(g, path, message=b'', options=Options()):
"""Fiat-shamir transform, extended to also allow signature.
The output is the concatenation of the commitments followed by the concatenation of all openings."""
print("TODO")
return b''

def verify_fiat_shamir_proof(g, proof, message=b'', options=Options()):
Expand Down
Loading

0 comments on commit b39fe74

Please sign in to comment.