dstebila / pygamehop Goto Github PK
View Code? Open in Web Editor NEW[work in progress] Python framework for supporting cryptographic game-hopping proofs
[work in progress] Python framework for supporting cryptographic game-hopping proofs
ast.parse(inspect.getsource(f))
chokes on functions that aren't defined at the top level of a module, since the source code for f is indented. (This affects pulling functions from inside classes, for example.) We should be able to change gamehop.inlining.internal.get_function_def to count how much whitespace is as the start of the first line, and then remove that much space from the start of every line.
Eg. multi-party PKE. Reduction guesses a particular key. Fails if adversary selects a different key.
Will want to re-do PKE from KEM using this. At the end will need to check that output is independent of input bit. Have to figure out how to handle proofs that mix guessing games and distinguishing games.
Maybe using Python's unittest module?
I think the logic for if expressions incorrectly handles the following case:
x = 1
if condition:
x = 2
y = 2
else:
y = 3
Would be cool to be able to output LaTeX source code of a crypto function written in Python. We can recognize the type of statement (assign, function call, if, return), but the user would have to provide mapping of what they want individual variables to be rendered as (e.g., {'kem': '\mathsf{KEM}', 'pk': '\pk', ...}
).
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.