{"id":20670502,"url":"https://github.com/zemyblue/govrf","last_synced_at":"2025-08-13T11:48:28.921Z","repository":{"id":86005281,"uuid":"234242515","full_name":"zemyblue/govrf","owner":"zemyblue","description":"Golang wrapper of VRF included libsodium","archived":false,"fork":false,"pushed_at":"2020-03-24T07:14:25.000Z","size":1637,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-03-10T16:46:47.576Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"C","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/zemyblue.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}},"created_at":"2020-01-16T05:27:22.000Z","updated_at":"2020-03-24T07:14:29.000Z","dependencies_parsed_at":null,"dependency_job_id":"bcb93ddd-ffce-431b-8937-5af017fa9383","html_url":"https://github.com/zemyblue/govrf","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/zemyblue/govrf","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zemyblue%2Fgovrf","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zemyblue%2Fgovrf/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zemyblue%2Fgovrf/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zemyblue%2Fgovrf/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/zemyblue","download_url":"https://codeload.github.com/zemyblue/govrf/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zemyblue%2Fgovrf/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":270235075,"owners_count":24550175,"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-13T02:00:09.904Z","response_time":66,"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-16T20:21:09.082Z","updated_at":"2025-08-13T11:48:28.853Z","avatar_url":"https://github.com/zemyblue.png","language":"C","funding_links":[],"categories":[],"sub_categories":[],"readme":"# goVRF\nThis is VRF library of golang version \nI forked [algorand's libsodium](https://github.com/algorand/libsodium) and extract only vrf module from go-algorand.\n\n### How to compile libsodium of algorand\n```shell script\ncd ./crypto/libsodium\n./autogen.sh\n./configure\nmake \u0026\u0026 make check\nsudo make install\n```\nAnd then, libsodium installed under /usr/local/lib/ if MacOS.\n\n### Build and Test\n```shell script\ngo build\ngo test -v\n```\n\n\n# VRF Types\n```go\ntype VrfPrivkey [64]uint8\ntype VrfPubkey [32]uint8\n```\n\n# VRF functions\n## make private key and public key\n```go\nfunc VrfKeygenFromSeed(seed [32]byte) (pub VrfPubkey, priv VrfPrivkey)\nfunc VrfKeygen() (pub VrfPubkey, priv VrfPrivKey)\n```\n\n## VrfPrivKey\n```go\nfunc (sk VrfPrivkey) Pubkey() (pk VrfPubkey)\nfunc (sk VrfPrivkey) Prove(message []byte) (proof VrfProof, ok bool)\nfunc (proof VrfProof) Hash() (hash VrfOutput, ok bool)\n```\n\n## VrfPubKey\n```go\nfunc (pk VrfPubkey) Verify(p VrfProof, message []byte) (bool, VrfOutput\n``` \n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fzemyblue%2Fgovrf","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fzemyblue%2Fgovrf","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fzemyblue%2Fgovrf/lists"}