Skip to main content

Module http_sync_api

Module http_sync_api 

Source
Expand description

HTTP implementation of TreeSyncApi for connecting to a running Zally chain node.

Maps the three trait methods to per-round REST endpoints:

  • get_tree_state()GET /shielded-vote/v1/commitment-tree/{round_id}/latest
  • get_root_at_height(h)GET /shielded-vote/v1/commitment-tree/{round_id}/{h}
  • get_block_commitments()GET /shielded-vote/v1/commitment-tree/{round_id}/leaves?from_height=X&to_height=Y

Structs§

HttpTreeSyncApi
HTTP-based implementation of TreeSyncApi for remote chain sync.

Enums§

HttpSyncError
Errors from the HTTP sync API.