{"id":21319488,"url":"https://github.com/zoom/elektra","last_synced_at":"2025-08-11T20:13:20.395Z","repository":{"id":219008312,"uuid":"721815601","full_name":"zoom/elektra","owner":"zoom","description":"Prototype implementation of the Key Transparency system ELEKTRA, presented at ACM CCS 2023","archived":false,"fork":false,"pushed_at":"2024-01-24T21:55:46.000Z","size":6139,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-03-15T22:29:06.243Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/zoom.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null}},"created_at":"2023-11-21T20:36:32.000Z","updated_at":"2024-02-03T19:35:19.000Z","dependencies_parsed_at":"2024-01-25T00:35:56.287Z","dependency_job_id":null,"html_url":"https://github.com/zoom/elektra","commit_stats":null,"previous_names":["zoom/elektra"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/zoom/elektra","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zoom%2Felektra","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zoom%2Felektra/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zoom%2Felektra/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zoom%2Felektra/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/zoom","download_url":"https://codeload.github.com/zoom/elektra/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zoom%2Felektra/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":269948859,"owners_count":24501821,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-08-11T02:00:10.019Z","response_time":75,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-11-21T19:42:21.569Z","updated_at":"2025-08-11T20:13:20.366Z","avatar_url":"https://github.com/zoom.png","language":"Go","readme":"# MVKD Implementation\n\nThis is a sample implementation of the MVKD construction ELEKTRA. Both server and client are written in Go.\nThis is an academic prototype not intended for production use.\n\n## Outline\n\n* package **merkle** implements an AZKS (append-only zero knowledge set) based on a Merkle tree agnostic to storage medium, along with a left-balanced binary tree\n* package **storage** contains a persistent implementation of the storage layer using PostgreSQL and LevelDB\n* package **sigchain** leverages the AZKS to build an MVKD (both client and server) and also includes experiments.\n* package **vrf** is an implementation of a rotatable verifiable random function based on P-256 (see Rotatable Zero-Knowledge Sets)\n* package **bin/experiments** allows running experiments against a specified or ad-hoc server\n* package **bin/server** runs the MVKD server\n\nNote: example commands in this README must be executed from the folder containing this file.\n\n## Server setup\n\nOn the server, you need to install and start postgresql, creating a user \"foo\" which can connect with no password to a database \"merkle\". For example, on ubuntu:\n\n```\nsudo apt-get install postgresql\nsudo service postgresql start\nsudo -u postgres createuser foo\nsudo vim /etc/postgresql/12/main/pg_hba.conf # edit and set local connections to \"trust\" to disable passwords. Remember that this is insecure!\nsudo service postgresql restart\nsudo -u postgres createdb merkle\n```\n\nThen, initialize the database with\n\n```\ngo run ./bin/db_reset/\n```\n\n## Running experiments\nOn the server, run\n\n```\ngo run ./bin/server/ --treeId=TREEID --port=PORT\n```\n\nTREEID is an arbitrary bytestring, and PORT is the port number the RPC server will listen on.\n\nOn the client, first initialize the tree with data\n\n```\ngo run ./bin/experiments --init=NLEAVES --remote=TREEID,SERVERIP:PORT\n```\nNLEAVES is the number of leaves to be added to the tree.\n\nthen run\n```\ngo run ./bin/experiments --exp=EXPERIMENT --remote=TREEID,SERVERIP:PORT\n```\n\nEXPERIMENT can be one of `query`, `build`, `throughput`, `rotate`. Each execution will output LaTeX code to render the results in a graph.\n\nFor convenience,\n* `adhoc` can be used for SERVERIP in order to run an ephemeral server on the client itself.\n** --init and --exp can be combined; the initialization happens before the experiment\n* Multiple remotes can be passed in each experiment in order to run the experiment against multiple tree sizes\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fzoom%2Felektra","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fzoom%2Felektra","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fzoom%2Felektra/lists"}