-
Notifications
You must be signed in to change notification settings - Fork 51
Ensure validation of transaction hashes to provide to the prover #1774
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
Ensure validation of transaction hashes to provide to the prover #1774
Conversation
/proof/cardano-transaction route
sfauvel
left a comment
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.
Just one comment
Co-authored-by: DJO <[email protected]> Co-authored-by: Sébastien Fauvel <[email protected]>
…ns_proofs` Co-authored-by: Sébastien Fauvel <[email protected]> Co-authored-by: DJO <[email protected]>
Co-authored-by: DJO <[email protected]> Co-authored-by: Sébastien Fauvel <[email protected]>
…ns hashes Co-authored-by: DJO <[email protected]> Co-authored-by: Sébastien Fauvel <[email protected]>
…the prover Co-authored-by: Sébastien Fauvel <[email protected]>
… the HTTP prover route Co-authored-by: DJO <[email protected]> Co-authored-by: Sébastien Fauvel <[email protected]>
Co-authored-by: DJO <[email protected]>
Co-authored-by: Sébastien Fauvel <[email protected]> Co-authored-by: DJO <[email protected]>
…actions hashes allowed by request to the prover Co-authored-by: Sébastien Fauvel <[email protected]> Co-authored-by: DJO <[email protected]>
…wed_by_request` in `root_routes` HTTP response Co-authored-by: Sébastien Fauvel <[email protected]> Co-authored-by: DJO <[email protected]>
… the `proof_route` Co-authored-by: Sébastien Fauvel <[email protected]> Co-authored-by: DJO <[email protected]>
Co-authored-by: Sébastien Fauvel <[email protected]> Co-authored-by: DJO <[email protected]>
…` parameter to build the default configuration Co-authored-by: DJO <[email protected]> Co-authored-by: Sébastien Fauvel <[email protected]>
f910d58 to
845a532
Compare
jpraynaud
left a comment
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.
I'm a bit concerned about the scope of the validator which should be responsible for computing the list of transactions hashes used by the prover.
mithril-aggregator/src/http_server/validators/prover_transactions_hash_validator.rs
Outdated
Show resolved
Hide resolved
mithril-aggregator/src/http_server/validators/prover_transactions_hash_validator.rs
Outdated
Show resolved
Hide resolved
mithril-aggregator/src/http_server/validators/prover_transactions_hash_validator.rs
Outdated
Show resolved
Hide resolved
mithril-aggregator/src/http_server/validators/prover_transactions_hash_validator.rs
Outdated
Show resolved
Hide resolved
…onstructor Co-authored-by: DJO <[email protected]> Co-authored-by: Sébastien Fauvel <[email protected]>
Co-authored-by: DJO <[email protected]> Co-authored-by: Sébastien Fauvel <[email protected]>
53ba1a7 to
7a9e6ea
Compare
Co-authored-by: DJO <[email protected]> Co-authored-by: Sébastien Fauvel <[email protected]>
jpraynaud
left a comment
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.
LGTM
Co-authored-by: DJO <[email protected]> Co-authored-by: Sébastien Fauvel <[email protected]>
Content
This PR includes a validation step for the transaction hashes transmitted via the HTTP route
/proof/cardano-transaction. It was implemented with:cardano_transactions_prover_max_hashes_allowed_by_requestthat limits the number of hashes accepted as parameters on the/proof/cardano-transactionroute.cardano_transactions_proverexposed on the root route/.This structure is stored within the existing
capabilitiesstructure and currently contains only the previous configuration parameter value under the property namemax_hashes./proof/cardano-transactionroute.Pre-submit checklist
Issue(s)
Closes #1757