{"id":15646217,"url":"https://github.com/noot/ring-go","last_synced_at":"2025-07-24T22:37:09.392Z","repository":{"id":65220377,"uuid":"140119601","full_name":"noot/ring-go","owner":"noot","description":"💍implementation of linkable ring signatures in go","archived":false,"fork":false,"pushed_at":"2024-07-15T22:13:37.000Z","size":8909,"stargazers_count":53,"open_issues_count":2,"forks_count":11,"subscribers_count":6,"default_branch":"master","last_synced_at":"2025-01-08T17:33:57.731Z","etag":null,"topics":["cryptography","proof-of-membership","ring-signatures","zk"],"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/noot.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,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2018-07-07T22:05:13.000Z","updated_at":"2024-11-01T09:26:44.000Z","dependencies_parsed_at":"2024-10-03T12:14:28.146Z","dependency_job_id":null,"html_url":"https://github.com/noot/ring-go","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/noot%2Fring-go","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/noot%2Fring-go/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/noot%2Fring-go/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/noot%2Fring-go/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/noot","download_url":"https://codeload.github.com/noot/ring-go/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":234280434,"owners_count":18807457,"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","proof-of-membership","ring-signatures","zk"],"created_at":"2024-10-03T12:11:52.896Z","updated_at":"2025-01-16T22:09:14.050Z","avatar_url":"https://github.com/noot.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# ring-go\nImplementation of linkable ring signatures using elliptic curve crypto in pure Go. It supports ring signatures over both ed25519 and secp256k1.\n\n### requirements\ngo 1.19\n\n### get\n`go get github.com/noot/ring-go`\n\n### references\nThis implementation is based off of [Ring Confidential Transactions](https://eprint.iacr.org/2015/1098.pdf), in particular section 2, which defines MLSAG (Multilayered Linkable Spontaneous Anonymous Group signatures).\n\n### usage\n\nSee `examples/main.go`.\n\n```go\npackage main\n\nimport (\n\t\"fmt\"\n\n\tring \"github.com/noot/ring-go\"\n\t\"golang.org/x/crypto/sha3\"\n)\n\nfunc signAndVerify(curve ring.Curve) {\n\tprivkey := curve.NewRandomScalar()\n\tmsgHash := sha3.Sum256([]byte(\"helloworld\"))\n\n\t// size of the public key ring (anonymity set)\n\tconst size = 16\n\n\t// our key's secret index within the set\n\tconst idx = 7\n\t\n\tkeyring, err := ring.NewKeyRing(curve, size, privkey, idx)\n\tif err != nil {\n\t\tpanic(err)\n\t}\n\n\tsig, err := keyring.Sign(msgHash, privkey)\n\tif err != nil {\n\t\tpanic(err)\n\t}\n\n\tok := sig.Verify(msgHash)\n\tif !ok {\n\t\tfmt.Println(\"failed to verify :(\")\n\t\treturn\n\t}\n\n\tfmt.Println(\"verified signature!\")\n}\n\nfunc main() {\n\tfmt.Println(\"using secp256k1...\")\n\tsignAndVerify(ring.Secp256k1())\n\tfmt.Println(\"using ed25519...\")\n\tsignAndVerify(ring.Ed25519())\n}\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnoot%2Fring-go","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fnoot%2Fring-go","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnoot%2Fring-go/lists"}