-
Notifications
You must be signed in to change notification settings - Fork 122
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
Async circuits, pt 2 - witness and transaction callback #1468
Conversation
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.
most of the PR is just adding asnyc
- a few comments to highlight actual changes to review:
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.
some actual changes here
src/lib/provable-core/exists.ts
Outdated
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.
introducing async witness
src/lib/provable.ts
Outdated
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.
introducing async witness
src/snarky.d.ts
Outdated
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.
additions to snarky-ml interface
): Promise<Transaction>; | ||
function transaction( | ||
senderOrF: DeprecatedFeePayerSpec | (() => void), | ||
fOrUndefined?: () => void | ||
senderOrF: DeprecatedFeePayerSpec | (() => Promise<void>), |
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.
Might be about time that we remove the old deprecated private key as fee payer spec
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.
good idea. I'll do an API cleanup PR before v1 that removes all the long deprecated stuff
This PR adds the two remaining dependencies to support async contract methods:
Provable.asyncWitness()
Mina.transaction
callback asyncSince these two changes ended up creating a huge diff, and the next PR will do so again, I chose to defer actual async methods to yet another PR
snarky: o1-labs/snarky#839
mina: to be seen if this can be included in an existing PR
bindings: o1-labs/o1js-bindings#253