{"id":21294485,"url":"https://github.com/athanorlabs/go-dleq","last_synced_at":"2025-04-14T16:13:29.332Z","repository":{"id":64300479,"uuid":"456287096","full_name":"AthanorLabs/go-dleq","owner":"AthanorLabs","description":"go implementation of cross-group discrete logarithm equality proofs","archived":false,"fork":false,"pushed_at":"2023-03-29T00:53:50.000Z","size":45,"stargazers_count":5,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2024-12-31T07:48:04.229Z","etag":null,"topics":["cryptography","dleq","zero-knowledge"],"latest_commit_sha":null,"homepage":"","language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"lgpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/AthanorLabs.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}},"created_at":"2022-02-06T22:20:57.000Z","updated_at":"2024-09-25T06:01:46.000Z","dependencies_parsed_at":"2023-02-09T17:16:13.548Z","dependency_job_id":null,"html_url":"https://github.com/AthanorLabs/go-dleq","commit_stats":null,"previous_names":["noot/go-dleq"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AthanorLabs%2Fgo-dleq","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AthanorLabs%2Fgo-dleq/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AthanorLabs%2Fgo-dleq/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AthanorLabs%2Fgo-dleq/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/AthanorLabs","download_url":"https://codeload.github.com/AthanorLabs/go-dleq/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":235075156,"owners_count":18931886,"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","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":["cryptography","dleq","zero-knowledge"],"created_at":"2024-11-21T13:59:20.567Z","updated_at":"2025-01-22T06:44:38.181Z","avatar_url":"https://github.com/AthanorLabs.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# go-dleq\n\nThis repo contains an implementation of cross-group discrete logarithm equality as specified in [MRL-0010](https://www.getmonero.org/resources/research-lab/pubs/MRL-0010.pdf). In addition to what's specified in the paper, it contains an additional proof of knowledge of the witness ie. a signature on both curves. Currently, secp256k1 and ed25519 are supported. The library is written such that other curves can be added.\n\n## Usage\n```go\nimport (\n    \"github.com/athanorlabs/go-dleq\"\n    \"github.com/athanorlabs/go-dleq/ed25519\"\n    \"github.com/athanorlabs/go-dleq/secp256k1\"\n)\n\ncurveA := secp256k1.NewCurve()\ncurveB := ed25519.NewCurve()\nx, err := dleq.GenerateSecretForCurves(curveA, curveB)\nif err != nil {\n    panic(err)\n}\n\nproof, err := dleq.NewProof(curveA, curveB, x)\nif err != nil {\n    panic(err)\n}\n\nerr = proof.Verify(curveA, curveB)\nif err != nil {\n    panic(err)\n}\n```","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fathanorlabs%2Fgo-dleq","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fathanorlabs%2Fgo-dleq","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fathanorlabs%2Fgo-dleq/lists"}