{"id":13630309,"url":"https://github.com/ChainSafe/go-schnorrkel","last_synced_at":"2025-04-17T13:32:04.345Z","repository":{"id":36662991,"uuid":"217427988","full_name":"ChainSafe/go-schnorrkel","owner":"ChainSafe","description":"🍵 Schnorr Signatures over Ristretto255 in pure Go","archived":false,"fork":false,"pushed_at":"2023-12-18T23:01:29.000Z","size":1537,"stargazers_count":86,"open_issues_count":2,"forks_count":30,"subscribers_count":12,"default_branch":"master","last_synced_at":"2024-08-01T22:45:45.864Z","etag":null,"topics":["go","schnorrkel"],"latest_commit_sha":null,"homepage":"","language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/ChainSafe.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":"audit_report.pdf","citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null}},"created_at":"2019-10-25T01:43:27.000Z","updated_at":"2024-05-24T14:53:11.000Z","dependencies_parsed_at":"2024-01-14T06:56:46.551Z","dependency_job_id":null,"html_url":"https://github.com/ChainSafe/go-schnorrkel","commit_stats":{"total_commits":53,"total_committers":11,"mean_commits":4.818181818181818,"dds":0.6415094339622642,"last_synced_commit":"6f903a725bf83374e5bc00e78c34344211bd5b04"},"previous_names":[],"tags_count":5,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ChainSafe%2Fgo-schnorrkel","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ChainSafe%2Fgo-schnorrkel/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ChainSafe%2Fgo-schnorrkel/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ChainSafe%2Fgo-schnorrkel/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ChainSafe","download_url":"https://codeload.github.com/ChainSafe/go-schnorrkel/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":223757378,"owners_count":17197546,"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":["go","schnorrkel"],"created_at":"2024-08-01T22:01:37.957Z","updated_at":"2025-04-17T13:32:04.338Z","avatar_url":"https://github.com/ChainSafe.png","language":"Go","funding_links":[],"categories":["Go"],"sub_categories":[],"readme":"# go-schnorrkel\n  \u003ca href=\"https://discord.gg/zy8eRF7FG2\"\u003e\n    \u003cimg alt=\"Discord\" src=\"https://img.shields.io/discord/593655374469660673.svg?style=flat\u0026label=Discord\u0026logo=discord\" /\u003e\n  \u003c/a\u003e\n\n\nThis repo contains the Go implementation of the sr25519 signature algorithm (schnorr over ristretto25519). The existing Rust implementation is [here.](https://github.com/w3f/schnorrkel)\n\nThis library is currently able to create sr25519 keys, import sr25519 keys, and sign and verify messages. It is interoperable with the Rust implementation. \n\nThe BIP39 implementation in this library is compatible with the rust [substrate-bip39](https://github.com/paritytech/substrate-bip39) implementation.  Note that this is not a standard bip39 implementation.\n\nThis library has been audited as of August 2021 and is production-ready. Please see the [audit report](audit_report.pdf) for the results of the audit.\n\n### dependencies\n\ngo 1.21\n\n### usage\n\nExample: key generation, signing, and verification\n\n```go\npackage main \n\nimport (\n\t\"fmt\"\n\t\n\t\"github.com/ChainSafe/go-schnorrkel\"\n)\n\nfunc main() {\n\tmsg := []byte(\"hello friends\")\n\tsigningCtx := []byte(\"example\")\n\n\tsigningTranscript := schnorrkel.NewSigningContext(signingCtx, msg)\n\tverifyTranscript := schnorrkel.NewSigningContext(signingCtx, msg)\n\n\tpriv, pub, err := schnorrkel.GenerateKeypair()\n\tif err != nil {\n\t\tpanic(err)\n\t}\n\n\tsig, err := priv.Sign(signingTranscript)\n\tif err != nil {\n\t\tpanic(err)\n\t}\n\n\tok, err := pub.Verify(sig, verifyTranscript)\n\tif err != nil {\n\t\tpanic(err)\n\t}\n\tif !ok {\n\t\tfmt.Println(\"failed to verify signature\")\n\t\treturn\n\t}\n\n\tfmt.Println(\"verified signature\")\n}\n```\n\nPlease see the [godocs](https://pkg.go.dev/github.com/ChainSafe/go-schnorrkel) for more usage examples.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FChainSafe%2Fgo-schnorrkel","html_url":"https://awesome.ecosyste.ms/projects/github.com%2FChainSafe%2Fgo-schnorrkel","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FChainSafe%2Fgo-schnorrkel/lists"}