-
Notifications
You must be signed in to change notification settings - Fork 141
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Preconditions #207
Merged
mitschabaude
merged 50 commits into
feature/preconditions-refactor
from
feature/preconditions
Jun 9, 2022
Merged
Preconditions #207
Changes from 1 commit
Commits
Show all changes
50 commits
Select commit
Hold shift + click to select a range
d1d982a
expose verification of tx proofs
mitschabaude a1c97d7
start writing precondition logic
mitschabaude 6aa176f
start adding .get() for account fields
mitschabaude e55897e
move executionstate off of smart contract
mitschabaude 5bf05cd
add method to check equality of two snarky types
mitschabaude bdf4c96
add `account` field to Party, adapt party cloning
mitschabaude 36a9beb
error when getting account fields w/o constraining
mitschabaude 2dc2deb
fix alternate way of signing tx
mitschabaude 9cc14dd
implement assertions on account preconditions
mitschabaude d8adf47
don't hard-code range conditions
mitschabaude 571b5a8
better error message on missing account fields
mitschabaude e80ddea
add logic to fetch protocol state at best tip
mitschabaude 2e2c4e6
renaming
mitschabaude 30c42da
compute precondition class type more intelligently
mitschabaude d6170d9
implement this.network
mitschabaude 8294ec3
make Types.{UInt32, UInt64} distuingishable
mitschabaude 2370bc7
unify this.account impl with this.network
mitschabaude 8c171d0
make type invariants more local
mitschabaude 38b8444
parse fetched preconditions into compatible type
mitschabaude 0225489
add more stuff to Bool
mitschabaude 631f93a
plug in fetching of network state
mitschabaude 0f110aa
allow precondition.get() outside transaction
mitschabaude dab7ed9
add method to simple_zkapp that uses preconditions
mitschabaude ad8dd5f
Merge branch 'main' into feature/preconditions
mitschabaude 08c3517
Merge branch 'main' into feature/verify-proofs
mitschabaude 975baca
fix serve:web script
mitschabaude 187ea84
don't modify function.name, not supported well
mitschabaude 440e92b
add missing methods to worker_spec; fixes proving
mitschabaude 5df9800
Merge pull request #231 from o1-labs/fix/zkapps-web-main
mitschabaude 960c0e9
Merge branch 'feature/preconditions-refactor' into feature/preconditions
mitschabaude 902462c
Merge branch 'main' into feature/verify-proofs
mitschabaude 60999a7
clean variable cache to avoid messing up circuits
mitschabaude 6d4fbdd
check that precondition works in a proof
mitschabaude 6a8a176
tweak uint types
mitschabaude 0a62267
fetch network state more efficiently
mitschabaude 2f0d293
throw when accessing unimplemented precondition
mitschabaude 72ef4f1
fix: properly clean up if precondition check fails
mitschabaude 3db29f1
add unimplemented preconditions
mitschabaude 22def5c
build fixes
mitschabaude 3f497cb
fix ts linting in .test files
mitschabaude 68dc9ac
add timestamp to unimplemented preconditions
mitschabaude 899d14c
add precondition unit tests
mitschabaude d104558
remove unused imports
mitschabaude 118401c
update bindings
mitschabaude 8774937
Merge pull request #208 from o1-labs/feature/verify-proofs
mitschabaude 6b2073f
Merge pull request #235 from o1-labs/feature/preconditions-refactor
mitschabaude 3562b3c
address pr comments
mitschabaude 0d67182
Merge branch 'main' into feature/preconditions
mitschabaude adf7bc9
clean up bindings
mitschabaude 92d2308
update bindings
mitschabaude File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
clean variable cache to avoid messing up circuits
- v2.1.1
- v2.0.0
- v1.9.1
- v1.9.0
- v1.3.0
- v1.2.0
- v1.1.0
- v1.0.1
- v1.0.0
- v0.18.0
- v0.17.0
- v0.16.2
- v0.16.1
- v0.16.0
- v0.15.4
- v0.15.3
- v0.15.2
- v0.15.1
- v0.15.0
- v0.14.3
- v0.14.0
- v0.12.2
- v0.12.1
- v0.11.4
- v0.11.3
- v0.11.2
- v0.11.1
- v0.11.0
- v0.10.1
- v0.10.0
- v0.9.8
- v0.9.7
- v0.9.5
- v0.9.2
- v0.9.1
- v0.9.0
- v0.8.0
- v0.7.3
- v0.7.2
- v0.7.0
- v0.6.0
- v0.5.4
- v0.5.3
- audit
- 2.3.0
commit 60999a7306d1faa9c6be99a9d2ecc3ee81b4d3df
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this is the function that throws an error if the user used
.get()
on a account / network field, without explicitly adding a precondition. callingget
would have added an entry tocontext.read
. adding a precondition would have added an entry tocontext.constrained
.