[TASK] Add method for querying a relayer's merkle tree for a merkle path proof #516
Labels
difficulty: challenging 🏴☠️
feature ➕
Tasks that are functional additions or enhancements
p3 🔵
Issues should be resolved eventually
Overview
In an ideal world where a relayer can be trusted (wink wink SGX), it would be a huge performance improvement to be able to get a user's merkle path for a record/note commitment from the node storing all the leaves. This would eliminate the need for the client to download and cache all leaves locally, since they can just query this relayer for their proofs.
Description
Extend the leaf caching relayer with an API that fetches the Merkle path for a given leaf / set of leaves.
Acceptance Criteria
get_merkle_path
method which takes a leaf (or set of leaves) and returns the Merkle path for the leaf(s).get_merkle_path
function works as expected, returning the correct Merkle path for existing leaves and returning an error for non-existing leaves.The text was updated successfully, but these errors were encountered: