{"id":30067141,"url":"https://github.com/lunastev/essentials","last_synced_at":"2026-02-09T00:32:53.802Z","repository":{"id":297761024,"uuid":"995312998","full_name":"LunaStev/essentials","owner":"LunaStev","description":"A minimalist utility library for the Noir programming language, focused on providing essential zero-knowledge circuit components with a clean and practical API.","archived":false,"fork":false,"pushed_at":"2025-06-03T10:01:18.000Z","size":8,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"master","last_synced_at":"2025-10-07T14:49:26.323Z","etag":null,"topics":["essentials","library","noir-lang","sha256"],"latest_commit_sha":null,"homepage":"","language":"Noir","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/LunaStev.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,"zenodo":null}},"created_at":"2025-06-03T09:40:45.000Z","updated_at":"2025-06-03T10:01:20.000Z","dependencies_parsed_at":"2025-06-07T10:09:19.564Z","dependency_job_id":"9a6b6767-be6f-417c-b0a3-4ddafab132d2","html_url":"https://github.com/LunaStev/essentials","commit_stats":null,"previous_names":["lunastev/essentials"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/LunaStev/essentials","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/LunaStev%2Fessentials","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/LunaStev%2Fessentials/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/LunaStev%2Fessentials/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/LunaStev%2Fessentials/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/LunaStev","download_url":"https://codeload.github.com/LunaStev/essentials/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/LunaStev%2Fessentials/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29251542,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-08T22:49:53.206Z","status":"ssl_error","status_checked_at":"2026-02-08T22:49:51.384Z","response_time":57,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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":["essentials","library","noir-lang","sha256"],"created_at":"2025-08-08T08:08:17.484Z","updated_at":"2026-02-09T00:32:53.797Z","avatar_url":"https://github.com/LunaStev.png","language":"Noir","readme":"# essentials\n\nA minimalist utility library for the Noir programming language, focused on providing essential zero-knowledge circuit components with a clean and practical API.\n\n---\n\n## ✨ Features\n\n* `hash_sha256`: Compute SHA-256 hash of a byte array (uses official Noir sha256 submodule)\n* `verify_equal`: Assert that two Field values are equal\n* `is_even`: Check if a Field value is even (casts to u32 internally)\n* `check_in_range`: Assert that a Field is within a given inclusive range (uses u32 casting)\n\n---\n\n## 📦 Installation\n\n1. Clone this repo with submodules:\n\n   ```bash\n   git clone --recurse-submodules https://github.com/yourname/essentials.git\n   ```\n\n2. Or add it to an existing Noir project:\n\n   ```bash\n   git submodule add https://github.com/yourname/essentials.git essentials\n   ```\n\n3. Then in your `Nargo.toml`:\n\n   ```toml\n   [dependencies]\n   essentials = { path = \"./essentials\" }\n   sha256 = { path = \"./essentials/sha256\" }\n   ```\n\n---\n\n## 🧪 Usage\n\nExample in your main Noir file:\n\n```noir\nuse essentials::hash::hash_sha256;\nuse essentials::logic::{verify_equal, is_even};\nuse essentials::range::check_in_range;\n\nfn main() {\n    let x: Field = 4;\n    let y: Field = 4;\n\n    verify_equal(x, y);\n    assert(is_even(x));\n    check_in_range(x, 1, 10);\n}\n```\n\n---\n\n## 📁 File Structure\n\n```\nessentials/\n├── Nargo.toml\n├── src/\n│   ├── lib.nr\n│   ├── hash.nr\n│   ├── logic.nr\n│   └── range.nr\n└── sha256/ (submodule)\n```\n\n---\n\n## 🪪 License\n\nThis project is licensed under the [Mozilla Public License 2.0](https://www.mozilla.org/en-US/MPL/2.0/).\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flunastev%2Fessentials","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Flunastev%2Fessentials","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flunastev%2Fessentials/lists"}