Skip to content

Commit

Permalink
feat!: add padding support & make it optional (#21)
Browse files Browse the repository at this point in the history
* refactor: encoder/decoder into modules

* refactor: fn into struct with encoder/decoder globals

* feat: add optional padding to encoder

* test: encoder with pad/no pad

* feat: add optional padding to decoder

* test: decoder with pad/no pad

* chore: bump compiler version to 0.36.0 & nargo fmt

* feat: optimize padding

* feat: assert output length

* fix: fix input/ouput length assertion on non pad

* fix: formattin

* chore: improve encode length calc

---------

Co-authored-by: Saleel <[email protected]>
  • Loading branch information
grjte and saleel authored Oct 28, 2024
1 parent 4bc4c4b commit d9bd959
Show file tree
Hide file tree
Showing 5 changed files with 1,017 additions and 402 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ jobs:
strategy:
fail-fast: false
matrix:
toolchain: [nightly, 0.34.0]
toolchain: [nightly, 0.36.0]
steps:
- name: Checkout sources
uses: actions/checkout@v4
Expand All @@ -38,7 +38,7 @@ jobs:
- name: Install Nargo
uses: noir-lang/[email protected]
with:
toolchain: 0.34.0
toolchain: 0.36.0

- name: Run formatter
run: nargo fmt --check
2 changes: 1 addition & 1 deletion Nargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,6 @@
name = "noir_base64"
type = "lib"
authors = [""]
compiler_version = ">=0.34.0"
compiler_version = ">=0.36.0"

[dependencies]
Loading

0 comments on commit d9bd959

Please sign in to comment.