Skip to content
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

Add /siblings endpoint #113

Merged
merged 2 commits into from
Dec 21, 2022
Merged

Add /siblings endpoint #113

merged 2 commits into from
Dec 21, 2022

Conversation

lok52
Copy link
Collaborator

@lok52 lok52 commented Dec 20, 2022

Changes:

  • Add /siblings endpoint. It returns hex-encoded left sibling nodes starting from the specified leaf index up to the tree root. Requested index i should pass following checks: i > 0, i % 128 = 0, i < tree.next_index, otherwise 400 Bad Request is returned.
    Closes Siblings endpoint #109

Depends on zkBob/libzkbob-rs#33

@r0wdy1 r0wdy1 merged commit 3ab3a34 into devel Dec 21, 2022
@akolotov akolotov deleted the feature/siblings branch December 21, 2022 13:37
akolotov added a commit that referenced this pull request Jan 2, 2023
This merge contains the following set of changes:
  - Add relayer test setup (#98)
  - Actualize README (#111)
  - Support of several RPC URLs to send transactions (#112)
  - Add /siblings endpoint (#113)
  - Remove fallback job fetching from /job endpoint (#114)
  - Forbid withdrawals to zero account (#118)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Siblings endpoint
4 participants