Skip to content

Commit

Permalink
chore: rename lib
Browse files Browse the repository at this point in the history
  • Loading branch information
colinnielsen committed Jul 12, 2023
1 parent 716edc8 commit f3b83f6
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion Nargo.toml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
[package]
name = "noir-i2b"
name = "noir-u2b"
authors = ["@colinnielsen"]
compiler_version = "0.7.1"
notes = "AMDG"
Expand Down
10 changes: 5 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,22 +1,22 @@
# Noir I2B
# Noir u2b

[![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](https://opensource.org/licenses/MIT) [![Nargo Test 🌌](https://github.com/colinnielsen/noir-i2b/actions/workflows/test.yml/badge.svg)](https://github.com/colinnielsen/noir-i2b/actions/workflows/test.yml)
[![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)

**Noir I2B** contains helpers functions for converting unsigned integers to `[u8]` arrays of appropriate size
**Noir u2b** contains helpers functions for converting unsigned integers to `[u8]` arrays of appropriate size

## Usage

In your `Nargo.toml` file, add the following dependency:

```toml
[dependencies]
i2b = { tag = "v0.1.0", git = "https://github.com/colinnielsen/noir-i2b" }
u2b = { tag = "v0.2.0", git = "https://github.com/colinnielsen/noir-u2b" }
```

Conversion functions are available for all unsigned integer types `u(8-64)`. They can be used as follows:

```rust
use dep::i2b;
use dep::u2b;

fn main(){
let num: u16 = 256;
Expand Down

0 comments on commit f3b83f6

Please sign in to comment.