{"id":13768605,"url":"https://github.com/colinnielsen/noir-u2b","last_synced_at":"2025-05-10T23:31:34.237Z","repository":{"id":180718641,"uuid":"665579787","full_name":"colinnielsen/noir-u2b","owner":"colinnielsen","description":"u(ints) -\u003e b(yte arrays)","archived":false,"fork":false,"pushed_at":"2024-02-12T23:30:14.000Z","size":16,"stargazers_count":8,"open_issues_count":1,"forks_count":2,"subscribers_count":2,"default_branch":"main","last_synced_at":"2024-11-17T03:31:48.909Z","etag":null,"topics":["aztec","noir","noir-lang"],"latest_commit_sha":null,"homepage":"","language":"Roff","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/colinnielsen.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":"2023-07-12T14:13:27.000Z","updated_at":"2024-09-14T22:03:12.000Z","dependencies_parsed_at":"2024-02-13T00:44:06.958Z","dependency_job_id":null,"html_url":"https://github.com/colinnielsen/noir-u2b","commit_stats":null,"previous_names":["colinnielsen/noir-i2b"],"tags_count":4,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/colinnielsen%2Fnoir-u2b","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/colinnielsen%2Fnoir-u2b/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/colinnielsen%2Fnoir-u2b/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/colinnielsen%2Fnoir-u2b/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/colinnielsen","download_url":"https://codeload.github.com/colinnielsen/noir-u2b/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":253497296,"owners_count":21917683,"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":["aztec","noir","noir-lang"],"created_at":"2024-08-03T16:01:23.355Z","updated_at":"2025-05-10T23:31:32.552Z","avatar_url":"https://github.com/colinnielsen.png","language":"Roff","funding_links":[],"categories":["Libraries","Get Coding"],"sub_categories":["Data Type Manipulation","Libraries"],"readme":"# Noir u2b\n\n[![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](https://opensource.org/licenses/MIT) [![Nargo Test 🌌](https://github.com/colinnielsen/noir-u2b/actions/workflows/test.yml/badge.svg)](https://github.com/colinnielsen/noir-u2b/actions/workflows/test.yml)\n\n**Noir u2b** contains helpers functions for converting unsigned integers to `[u8]` arrays of appropriate size\n\n## Usage\n\nIn your `Nargo.toml` file, add the following dependency:\n\n```toml\n[dependencies]\nu2b = { tag = \"v0.3.0\", git = \"https://github.com/colinnielsen/noir-u2b\" }\n```\n\nConversion functions are available for all unsigned integer types `u(8-128)`. They can be used as follows:\n\n```rust\nuse dep::u2b;\n\nfn main(){\n    let num: u16 = 256;\n\n    let num_arr = u64_to_u8(num);\n\n    ...\n\n    let num: u64 = 123451224112;\n\n    let num_arr: [u8; 8] = u64_to_u8(num);\n}\n```\n\n## License\n\nThis project is licensed under the MIT License. See the [LICENSE](https://github.com/colinnielsen/noir-array-helpers/blob/main/LICENSE) file for details.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcolinnielsen%2Fnoir-u2b","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcolinnielsen%2Fnoir-u2b","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcolinnielsen%2Fnoir-u2b/lists"}