{"id":24797555,"url":"https://github.com/dylanlott/choam","last_synced_at":"2026-07-02T23:31:30.421Z","repository":{"id":209089789,"uuid":"723214110","full_name":"dylanlott/CHOAM","owner":"dylanlott","description":"chaum-pedersen high-security ordinal authentication machine ⚙️","archived":false,"fork":false,"pushed_at":"2024-09-19T23:02:08.000Z","size":840,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-10-27T08:42:10.596Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"Rust","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/dylanlott.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2023-11-25T00:43:44.000Z","updated_at":"2024-09-19T23:02:11.000Z","dependencies_parsed_at":null,"dependency_job_id":"c8ad6303-b93b-4567-92d2-fc48e36b0d83","html_url":"https://github.com/dylanlott/CHOAM","commit_stats":null,"previous_names":["dylanlott/choam"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/dylanlott/CHOAM","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dylanlott%2FCHOAM","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dylanlott%2FCHOAM/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dylanlott%2FCHOAM/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dylanlott%2FCHOAM/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/dylanlott","download_url":"https://codeload.github.com/dylanlott/CHOAM/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dylanlott%2FCHOAM/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":35067030,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-07-02T02:00:06.368Z","response_time":173,"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":"2025-01-30T01:28:38.269Z","updated_at":"2026-07-02T23:31:30.398Z","avatar_url":"https://github.com/dylanlott.png","language":"Rust","funding_links":[],"categories":[],"sub_categories":[],"readme":"# CHOAM\n\n\u003e **CHOAM**: The Chaum-Pedersen High-Securty Ordinal Authentication Machine.\n\n*tl;dr* - an authentication server that uses a custom chaum-pedersen protocol implementation to authenticate requests and hand out JWTs for authorization.\n\nI've been reading a lot of Dune lately, so I present to you *CHOAM*, a Chaum-Pedersen protocol implementation in GRPC and Rust. Chaum-Pedersen is a Sigma protocol for [zero-knowledge proofs](https://en.wikipedia.org/wiki/Zero-knowledge_proof).\n\n![CHOAM In Action](screenshot.png)\n\n## I am not a cryptographer, and I'm certainly not *your* cryptographer\n\nThis is not production ready code, and it should absolutely not be used for anything in production period.\n\n## Running CHOAM\n\nTo test this script out, you need to run the server locally and then run the client to authenticate with the server.\n\n- `cargo run-server` to run the CHOAM server.\n- `cargo run-client` to run the client.\n- `cargo build-client` builds the client binary.\n- `cargo build-server` builds the server binary.\n\nThe client runs an automatic connection protocol and stores the token it receives from the authentication request.\n\n## Structure\n\n- `src/main.rs` contains a heavily commented walk-through of the Chaum-Pedersen protocol.\n- `src/server.rs` contains the gRPC server implementation for authenticating against.\n- `src/client.rs` contains the gRPC client implementation that authenticates itself against the server.\n- `src/proto/` contains the Protobuf definitions.\n\n## Dependencies\n\n- Tokio for asynchronous execution at runtime\n- Tonic for generating Protobuf files\n- num-bigint for modpow and other math\n- jsonwebtoken for generating JWTs after successful authentication\n\n## Related Reading\n\n- [Zero-knowledge proof](https://en.wikipedia.org/wiki/Zero-knowledge_proof)\n- [Publicly verifiable secret sharing](https://en.wikipedia.org/wiki/Publicly_Verifiable_Secret_Sharing)\n\n### *The spice must flow.*\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdylanlott%2Fchoam","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdylanlott%2Fchoam","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdylanlott%2Fchoam/lists"}