Skip to content

Commit

Permalink
Update for latest Noir+lib
Browse files Browse the repository at this point in the history
  • Loading branch information
jzaki committed Jan 15, 2025
1 parent aecd7b0 commit 7b21267
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion lib_examples/base64_example/Nargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,4 @@ authors = [""]
compiler_version = ">=0.36.0"

[dependencies]
base64 = {tag = "v0.3.0", git = "https://github.com/noir-lang/noir_base64.git"}
base64 = {tag = "v0.3.1", git = "https://github.com/noir-lang/noir_base64.git"}
4 changes: 2 additions & 2 deletions lib_examples/base64_example/src/main.nr
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@ pub global ENCODE_RUNS: u32 = 3;
pub global DECODE_RUNS: u32 = 0;

// Choose size, and use corresponding Prover.toml during execution
comptime global TEST_INPUT = test_inputs::TEST_INPUT_SHORT;
comptime global TEST_BASE64_ENCODED = test_inputs::TEST_BASE64_ENCODED_SHORT;
comptime global TEST_INPUT: str<12> = test_inputs::TEST_INPUT_SHORT;
comptime global TEST_BASE64_ENCODED: str<16> = test_inputs::TEST_BASE64_ENCODED_SHORT;

comptime global U: u32 = comptime { TEST_INPUT.as_bytes().len() };
comptime global B: u32 = comptime {
Expand Down
8 changes: 4 additions & 4 deletions lib_examples/base64_example/src/test_inputs.nr
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
//SHORT
pub comptime global TEST_INPUT_SHORT = "The quick br";
pub comptime global TEST_BASE64_ENCODED_SHORT = "VGhlIHF1aWNrIGJy";
pub comptime global TEST_INPUT_SHORT: str<12> = "The quick br";
pub comptime global TEST_BASE64_ENCODED_SHORT: str<16> = "VGhlIHF1aWNrIGJy";

//LONG
pub comptime global TEST_INPUT_LONG =
pub comptime global TEST_INPUT_LONG: str<88> =
"The quick brown fox jumps over the lazy dog, while 42 ravens perch atop a rusty mailbox.";
pub comptime global TEST_BASE64_ENCODED_LONG = "VGhlIHF1aWNrIGJyb3duIGZveCBqdW1wcyBvdmVyIHRoZSBsYXp5IGRvZywgd2hpbGUgNDIgcmF2ZW5zIHBlcmNoIGF0b3AgYSBydXN0eSBtYWlsYm94Lg==";
pub comptime global TEST_BASE64_ENCODED_LONG: str<120> = "VGhlIHF1aWNrIGJyb3duIGZveCBqdW1wcyBvdmVyIHRoZSBsYXp5IGRvZywgd2hpbGUgNDIgcmF2ZW5zIHBlcmNoIGF0b3AgYSBydXN0eSBtYWlsYm94Lg==";

//LONG LONG
// pub comptime global TEST_INPUT_LONG_LONG =
Expand Down

0 comments on commit 7b21267

Please sign in to comment.