{"id":33928798,"url":"https://github.com/dusk-network/plonk_gadgets","last_synced_at":"2025-12-30T06:03:49.051Z","repository":{"id":48916355,"uuid":"241626331","full_name":"dusk-network/plonk_gadgets","owner":"dusk-network","description":"Container of general purpose gadgets used across Dusk Network's circuit implementations.","archived":true,"fork":false,"pushed_at":"2021-07-05T20:24:59.000Z","size":164,"stargazers_count":13,"open_issues_count":2,"forks_count":4,"subscribers_count":8,"default_branch":"master","last_synced_at":"2025-10-20T23:14:42.468Z","etag":null,"topics":["ecc","gadgets","plonk","plonk-gadgets","zk-circuits"],"latest_commit_sha":null,"homepage":"","language":"Rust","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mpl-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/dusk-network.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2020-02-19T13:17:35.000Z","updated_at":"2023-11-09T00:43:54.000Z","dependencies_parsed_at":"2022-08-27T02:39:47.270Z","dependency_job_id":null,"html_url":"https://github.com/dusk-network/plonk_gadgets","commit_stats":null,"previous_names":[],"tags_count":10,"template":false,"template_full_name":null,"purl":"pkg:github/dusk-network/plonk_gadgets","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dusk-network%2Fplonk_gadgets","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dusk-network%2Fplonk_gadgets/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dusk-network%2Fplonk_gadgets/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dusk-network%2Fplonk_gadgets/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/dusk-network","download_url":"https://codeload.github.com/dusk-network/plonk_gadgets/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dusk-network%2Fplonk_gadgets/sbom","scorecard":{"id":360151,"data":{"date":"2025-08-11","repo":{"name":"github.com/dusk-network/plonk_gadgets","commit":"cbc0cff3f74166e8fb1df3f582064736b1446d67"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":4.5,"checks":[{"name":"Code-Review","score":9,"reason":"Found 10/11 approved changesets -- score normalized to 9","details":null,"documentation":{"short":"Determines if the project requires human code review before pull requests (aka merge requests) are merged.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#code-review"}},{"name":"Packaging","score":-1,"reason":"packaging workflow not detected","details":["Warn: no GitHub/GitLab publishing workflow detected."],"documentation":{"short":"Determines if the project is published as a package that others can easily download, install, easily update, and uninstall.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#packaging"}},{"name":"Maintained","score":0,"reason":"project is archived","details":["Warn: Repository is archived."],"documentation":{"short":"Determines if the project is \"actively maintained\".","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#maintained"}},{"name":"Binary-Artifacts","score":10,"reason":"no binaries found in the repo","details":null,"documentation":{"short":"Determines if the project has generated executable (binary) artifacts in the source repository.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#binary-artifacts"}},{"name":"Dangerous-Workflow","score":10,"reason":"no dangerous workflow patterns detected","details":null,"documentation":{"short":"Determines if the project's GitHub Action workflows avoid dangerous patterns.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#dangerous-workflow"}},{"name":"Token-Permissions","score":0,"reason":"detected GitHub workflow tokens with excessive permissions","details":["Warn: no topLevel permission defined: .github/workflows/dusk_ci.yml:1","Info: no jobLevel write permissions found"],"documentation":{"short":"Determines if the project's workflows follow the principle of least privilege.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#token-permissions"}},{"name":"Pinned-Dependencies","score":0,"reason":"dependency not pinned by hash detected -- score normalized to 0","details":["Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/dusk_ci.yml:42: update your workflow using https://app.stepsecurity.io/secureworkflow/dusk-network/plonk_gadgets/dusk_ci.yml/master?enable=pin","Warn: third-party GitHubAction not pinned by hash: .github/workflows/dusk_ci.yml:43: update your workflow using https://app.stepsecurity.io/secureworkflow/dusk-network/plonk_gadgets/dusk_ci.yml/master?enable=pin","Warn: third-party GitHubAction not pinned by hash: .github/workflows/dusk_ci.yml:48: update your workflow using https://app.stepsecurity.io/secureworkflow/dusk-network/plonk_gadgets/dusk_ci.yml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/dusk_ci.yml:57: update your workflow using https://app.stepsecurity.io/secureworkflow/dusk-network/plonk_gadgets/dusk_ci.yml/master?enable=pin","Warn: third-party GitHubAction not pinned by hash: .github/workflows/dusk_ci.yml:58: update your workflow using https://app.stepsecurity.io/secureworkflow/dusk-network/plonk_gadgets/dusk_ci.yml/master?enable=pin","Warn: third-party GitHubAction not pinned by hash: .github/workflows/dusk_ci.yml:64: update your workflow using https://app.stepsecurity.io/secureworkflow/dusk-network/plonk_gadgets/dusk_ci.yml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/dusk_ci.yml:10: update your workflow using https://app.stepsecurity.io/secureworkflow/dusk-network/plonk_gadgets/dusk_ci.yml/master?enable=pin","Warn: third-party GitHubAction not pinned by hash: .github/workflows/dusk_ci.yml:11: update your workflow using https://app.stepsecurity.io/secureworkflow/dusk-network/plonk_gadgets/dusk_ci.yml/master?enable=pin","Warn: third-party GitHubAction not pinned by hash: .github/workflows/dusk_ci.yml:16: update your workflow using https://app.stepsecurity.io/secureworkflow/dusk-network/plonk_gadgets/dusk_ci.yml/master?enable=pin","Warn: third-party GitHubAction not pinned by hash: .github/workflows/dusk_ci.yml:20: update your workflow using https://app.stepsecurity.io/secureworkflow/dusk-network/plonk_gadgets/dusk_ci.yml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/dusk_ci.yml:28: update your workflow using https://app.stepsecurity.io/secureworkflow/dusk-network/plonk_gadgets/dusk_ci.yml/master?enable=pin","Warn: third-party GitHubAction not pinned by hash: .github/workflows/dusk_ci.yml:29: update your workflow using https://app.stepsecurity.io/secureworkflow/dusk-network/plonk_gadgets/dusk_ci.yml/master?enable=pin","Warn: third-party GitHubAction not pinned by hash: .github/workflows/dusk_ci.yml:34: update your workflow using https://app.stepsecurity.io/secureworkflow/dusk-network/plonk_gadgets/dusk_ci.yml/master?enable=pin","Info:   0 out of   4 GitHub-owned GitHubAction dependencies pinned","Info:   0 out of   9 third-party GitHubAction dependencies pinned"],"documentation":{"short":"Determines if the project has declared and pinned the dependencies of its build process.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#pinned-dependencies"}},{"name":"CII-Best-Practices","score":0,"reason":"no effort to earn an OpenSSF best practices badge detected","details":null,"documentation":{"short":"Determines if the project has an OpenSSF (formerly CII) Best Practices Badge.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#cii-best-practices"}},{"name":"Fuzzing","score":0,"reason":"project is not fuzzed","details":["Warn: no fuzzer integrations found"],"documentation":{"short":"Determines if the project uses fuzzing.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#fuzzing"}},{"name":"Vulnerabilities","score":10,"reason":"0 existing vulnerabilities detected","details":null,"documentation":{"short":"Determines if the project has open, known unfixed vulnerabilities.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#vulnerabilities"}},{"name":"License","score":10,"reason":"license file detected","details":["Info: project has a license file: LICENSE:0","Info: FSF or OSI recognized license: Mozilla Public License 2.0: LICENSE:0"],"documentation":{"short":"Determines if the project has defined a license.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#license"}},{"name":"Signed-Releases","score":-1,"reason":"no releases found","details":null,"documentation":{"short":"Determines if the project cryptographically signs release artifacts.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#signed-releases"}},{"name":"Branch-Protection","score":0,"reason":"branch protection not enabled on development/release branches","details":["Warn: branch protection not enabled for branch 'master'"],"documentation":{"short":"Determines if the default and release branches are protected with GitHub's branch protection settings.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#branch-protection"}},{"name":"Security-Policy","score":4,"reason":"security policy file detected","details":["Info: security policy file detected: github.com/dusk-network/.github/.github/SECURITY.md:1","Warn: no linked content found","Info: Found disclosure, vulnerability, and/or timelines in security policy: github.com/dusk-network/.github/.github/SECURITY.md:1","Info: Found text in security policy: github.com/dusk-network/.github/.github/SECURITY.md:1"],"documentation":{"short":"Determines if the project has published a security policy.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#security-policy"}},{"name":"SAST","score":0,"reason":"SAST tool is not run on all commits -- score normalized to 0","details":["Warn: 0 commits out of 29 are checked with a SAST tool"],"documentation":{"short":"Determines if the project uses static code analysis.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#sast"}}]},"last_synced_at":"2025-08-18T10:38:04.154Z","repository_id":48916355,"created_at":"2025-08-18T10:38:04.154Z","updated_at":"2025-08-18T10:38:04.154Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":27682205,"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-12-12T02:00:06.775Z","response_time":129,"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":["ecc","gadgets","plonk","plonk-gadgets","zk-circuits"],"created_at":"2025-12-12T11:46:27.869Z","updated_at":"2025-12-12T11:46:33.667Z","avatar_url":"https://github.com/dusk-network.png","language":"Rust","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Plonk Gadgets\n![Build Status](https://github.com/dusk-network/plonk_gadgets/workflows/Continuous%20integration/badge.svg)\n[![Repository](https://img.shields.io/badge/github-plonk_gadgets-blueviolet?logo=github)](https://github.com/dusk-network/plonk_gadgets)\n[![Documentation](https://img.shields.io/badge/docs-plonk_gadgets-blue?logo=rust)](https://docs.rs/plonk_gadgets/)\n\n\nThis library cointains the gadgets that the Dusk-Network protocol needs to build it's ZK-Circuits.\nThe library **contains generic gadgets** which are used across Dusk's tech stack, all of the other\ngadgets used which depend on foreign types are placed on the libraries where this types are defined.\n\n\n## WARNING\nThis implementation is not audited. Use under your own responsability.\n\n## Content\nThis library provides:\n\n- Scalar gadgets: `is_non-zero`, `maybe_equals`, `conditionally_select_one`, `conditionally_select_zero`.\n- Range gadgets: `range_check`, `max_bound`.\n\n\n## Acknowledgements\n\n- Conditional selection gadgets and `AllocatedScalar` structure have been taken from the ZCash sapling\ncircuits and translated to the Plonk Constraint System language.\n\n## Licensing\n\nThis code is licensed under Mozilla Public License Version 2.0 (MPL-2.0). Please see [LICENSE](https://github.com/dusk-network/plonk_gadgets/blob/master/LICENSE) for further info.\n\n## About\n\nImplementation designed by the [dusk](https://dusk.network) team.\n\n## Contributing\n- If you want to contribute to this repository/project please, check [CONTRIBUTING.md](https://github.com/dusk-network/plonk_gadgets/blob/master/CONTRIBUTING.md)\n- If you want to report a bug or request a new feature addition, please open an issue on this repository.","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdusk-network%2Fplonk_gadgets","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdusk-network%2Fplonk_gadgets","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdusk-network%2Fplonk_gadgets/lists"}