diff --git a/LICENSE b/LICENSE new file mode 100644 index 0000000..563c37e --- /dev/null +++ b/LICENSE @@ -0,0 +1,21 @@ +MIT License + +Copyright (c) 2023 noir-lang + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +SOFTWARE. diff --git a/bun.lockb b/bun.lockb new file mode 100755 index 0000000..d7210bf Binary files /dev/null and b/bun.lockb differ diff --git a/circuit/Nargo.toml b/circuit/Nargo.toml index 2dea451..8e58d49 100644 --- a/circuit/Nargo.toml +++ b/circuit/Nargo.toml @@ -1,7 +1,4 @@ + [package] name = "circuit" type = "bin" -authors = [""] -compiler_version = ">=0.31.0" - -[dependencies] \ No newline at end of file diff --git a/circuit/src/main.nr b/circuit/src/main.nr index 3c30bf0..6dec589 100644 --- a/circuit/src/main.nr +++ b/circuit/src/main.nr @@ -1,11 +1,4 @@ -fn main(x: Field, y: pub Field) { - assert(x != y); -} - -#[test] -fn test_main() { - main(1, 2); - // Uncomment to make test fail - // main(1, 1); +fn main(age: u8) { + assert(age >= 18); } diff --git a/vite-project/index.html b/index.html similarity index 73% rename from vite-project/index.html rename to index.html index 03747ae..b24abd1 100644 --- a/vite-project/index.html +++ b/index.html @@ -1,3 +1,4 @@ +
- +