Document not found (404)
+This URL is invalid, sorry. Please use the navigation bar or search to continue.
+ +diff --git a/.github/CODEOWNERS b/.github/CODEOWNERS deleted file mode 100644 index d227113e2..000000000 --- a/.github/CODEOWNERS +++ /dev/null @@ -1 +0,0 @@ -* @lambdaclass/zk_research_and_development diff --git a/.github/SECURITY.md b/.github/SECURITY.md deleted file mode 100644 index bda332d31..000000000 --- a/.github/SECURITY.md +++ /dev/null @@ -1,36 +0,0 @@ -# Security Policy - -## Reporting a Vulnerability - -We take the security of our project seriously. If you discover a vulnerability, we encourage you to report it responsibly so we can address it promptly. - -### How to Report - -1. Navigate to the **Security** tab of this repository. -2. Click on **"Report a Vulnerability"** to open the GitHub Security Advisories form. -3. Fill out the form with as much detail as possible, including: - - A clear description of the issue. - - Steps to reproduce the vulnerability. - - The affected versions or components. - - Any potential impact or severity details. - -Alternatively, you can send an email to **[security@lambdaclass.com](mailto:security@lambdaclass.com)** with the same details. - -### Guidelines for Reporting - -- **Do not publicly disclose vulnerabilities** until we have confirmed and fixed the issue. -- Include any proof-of-concept code, if possible, to help us verify the vulnerability more efficiently. -- If applicable, specify if the vulnerability is already being exploited. - -### Our Response Process - -- We commit to handling reports with diligence. -- We will investigate all reported vulnerabilities thoroughly and transparently. -- Once the vulnerability has been fixed, we will disclose the details publicly to ensure awareness and understanding. - - -### Reward Program - -While we do not currently offer a formal bug bounty program, we value your contribution and will recognize your efforts in our changelog or release notes (if you consent). - -Thank you for helping us improve the security of our project! diff --git a/.github/pull_request_template.md b/.github/pull_request_template.md deleted file mode 100644 index 15dc01b46..000000000 --- a/.github/pull_request_template.md +++ /dev/null @@ -1,21 +0,0 @@ -# TITLE - -## Description - -Description of the pull request changes and motivation. - -## Type of change - -Please delete options that are not relevant. - -- [ ] New feature -- [ ] Bug fix -- [ ] Optimization - -## Checklist -- [ ] Linked to Github Issue -- [ ] Unit tests added -- [ ] This change requires new documentation. - - [ ] Documentation has been added/updated. -- [ ] This change is an Optimization - - [ ] Benchmarks added/run diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml deleted file mode 100644 index 21dadfd10..000000000 --- a/.github/workflows/ci.yaml +++ /dev/null @@ -1,188 +0,0 @@ -name: CI -on: - merge_group: - push: - branches: [main] - pull_request: - branches: ["*"] - -concurrency: - group: ${{ github.head_ref || github.run_id }} - cancel-in-progress: true - -jobs: - compile: - name: Compile - runs-on: ubuntu-latest - steps: - - name: Checkout sources - uses: actions/checkout@v4 - - - name: Rustup toolchain install - uses: dtolnay/rust-toolchain@stable - with: - toolchain: stable - targets: wasm32-unknown-unknown - - - name: Set up cargo cache - uses: Swatinem/rust-cache@v2 - - - name: Run cargo check - run: cargo check - - - name: Run cargo check and stark instruments - run: | - cargo check --features instruments - - - name: Run cargo check cli, stark instruments and parallel - run: | - cargo check --features instruments,parallel - - - name: Run cargo check for math with no-std - run: cargo check --package lambdaworks-math --no-default-features - - - name: Run cargo check for math with wasm target - run: cargo check --package lambdaworks-math --no-default-features --target wasm32-unknown-unknown - - - name: Run cargo check for crypto with wasm target - run: cargo check --package lambdaworks-crypto --no-default-features --target wasm32-unknown-unknown - - - name: Run cargo build ensure-no_std crate - run: | - cd ensure-no_std - cargo build - - - name: Run cargo build for all workspace - run: | - cargo build --workspace - - - name: Run cargo build ensure-no_std crate for wasm - run: | - cd ensure-no_std - cargo build --target wasm32-unknown-unknown - - - name: Check benchmarks - run: cargo check --benches - - lint: - name: Lint - runs-on: ubuntu-latest - steps: - - name: Checkout sources - uses: actions/checkout@v3 - - - name: Install stable toolchain - uses: dtolnay/rust-toolchain@stable - with: - toolchain: stable - components: rustfmt, clippy - - - name: Run cargo fmt - run: cargo fmt --all -- --check - - - name: Run clippy - run: make clippy - - - name: Run clippy math and crypto no std - run: cargo clippy --package lambdaworks-math --package lambdaworks-crypto --no-default-features -- -D warnings - - - name: Run clippy math no std + alloc - run: cargo clippy --package lambdaworks-math --no-default-features --features=alloc,lambdaworks-serde-string,lambdaworks-serde-binary -- -D warnings - - test: - name: Test (Ubuntu) - runs-on: ubuntu-latest - env: - CARGO_TERM_COLOR: always - steps: - - uses: actions/checkout@v3 - - uses: dtolnay/rust-toolchain@stable - with: - toolchain: stable - components: clippy - - - name: Set up cargo cache - uses: Swatinem/rust-cache@v2 - - - name: Install testing tools - uses: taiki-e/install-action@v2 - with: - tool: cargo-nextest,cargo-llvm-cov - - - name: Run tests with no std - run: cargo test --package lambdaworks-math --package lambdaworks-crypto --no-default-features - - - name: Run tests for math with no std + alloc - run: cargo test --package lambdaworks-math --no-default-features --features=alloc,lambdaworks-serde-string,lambdaworks-serde-binary - - - name: Run tests and generate code coverage - run: make coverage - - - name: Cache coverage data - uses: actions/cache/save@v4 - with: - path: lcov.info - key: coverage-${{ github.sha }} - - coverage: - name: Upload Coverage to Codecov - runs-on: ubuntu-latest - needs: test - steps: - - uses: actions/checkout@v3 - - name: Fetch coverage data - uses: actions/cache/restore@v4 - with: - path: lcov.info - key: coverage-${{ github.sha }} - fail-on-cache-miss: true - - - name: Upload coverage to Codecov - uses: codecov/codecov-action@v3 - with: - token: ${{ secrets.CODECOV_TOKEN }} - files: lcov.info - fail_ci_if_error: true - - test_wasm_pack: - name: Test wasm-pack - runs-on: ubuntu-latest - env: - CARGO_TERM_COLOR: always - steps: - - uses: actions/checkout@v3 - - uses: dtolnay/rust-toolchain@stable - with: - toolchain: stable - components: clippy - - - name: Set up cargo cache - uses: Swatinem/rust-cache@v2 - - - name: Install wasm-pack tools for testing - run: curl https://rustwasm.github.io/wasm-pack/installer/init.sh -sSf | sh - - test_macos: - name: Test (macOS, Apple sillicon) - runs-on: macos-latest - env: - CARGO_TERM_COLOR: always - steps: - - uses: actions/checkout@v3 - - - name: install GCC/GMP - run: | - brew install gcc - brew install gmp - - - name: Rustup toolchain install - uses: dtolnay/rust-toolchain@stable - with: - toolchain: stable - components: clippy - - - name: Run clippy - run: make clippy - - - name: Run tests - run: make test diff --git a/.github/workflows/criterion_benchs.yml b/.github/workflows/criterion_benchs.yml deleted file mode 100644 index 32d5c7f2e..000000000 --- a/.github/workflows/criterion_benchs.yml +++ /dev/null @@ -1,67 +0,0 @@ -name: CI - -on: - push: - branches: [main] - -permissions: - # deployments permission to deploy GitHub pages website - deployments: write - # contents permission to update benchmark contents in gh-pages branch - contents: write - -jobs: - criterion_bench: - name: Criterion benches (Ubuntu) - runs-on: ubuntu-latest - env: - CARGO_TERM_COLOR: always - steps: - - name: Install stable toolchain - uses: dtolnay/rust-toolchain@stable - with: - toolchain: stable - - uses: actions/checkout@v3 - - name: Run benchmark - run: | - cargo bench --no-fail-fast --bench "criterion_fft" \ - --bench "criterion_polynomial" \ - -- --output-format bencher | tee output.txt - - name: Store benchmark result - uses: benchmark-action/github-action-benchmark@v1 - with: - tool: "cargo" - output-file-path: output.txt - benchmark-data-dir-path: "./bench" - github-token: ${{ secrets.GITHUB_TOKEN }} - # Push and deploy GitHub pages branch automatically - auto-push: ${{ github.event_name != 'pull_request' }} - criterion_bench_macos: - name: Criterion benches (macOS, Apple sillicon) - runs-on: macos-latest - env: - CARGO_TERM_COLOR: always - steps: - - name: Install stable toolchain - uses: dtolnay/rust-toolchain@stable - with: - toolchain: stable - - uses: actions/checkout@v3 - - name: install GCC/GMP - run: | - brew install gcc - brew install gmp - - - name: Run benchmark - run: | - cargo bench -F metal --no-fail-fast --bench "criterion_metal" \ - -- --output-format bencher | tee output.txt - - name: Store benchmark result - uses: benchmark-action/github-action-benchmark@v1 - with: - tool: "cargo" - output-file-path: output.txt - benchmark-data-dir-path: "./bench" - github-token: ${{ secrets.GITHUB_TOKEN }} - # Push and deploy GitHub pages branch automatically - auto-push: ${{ github.event_name != 'pull_request' }} diff --git a/.github/workflows/gh-pages.yml b/.github/workflows/gh-pages.yml deleted file mode 100644 index 9741f5982..000000000 --- a/.github/workflows/gh-pages.yml +++ /dev/null @@ -1,36 +0,0 @@ -name: Github Pages - -on: - push: - branches: - - main - paths: - - "docs/**" - pull_request: - paths: - - "docs/**" - -jobs: - deploy: - runs-on: ubuntu-20.04 - concurrency: - group: ${{ github.workflow }}-${{ github.ref }} - steps: - - uses: actions/checkout@v2 - - - name: Setup mdBook - uses: peaceiris/actions-mdbook@v1 - with: - mdbook-version: '0.4.10' - - - name: Install Katex - run: cargo install mdbook-katex - - - run: mdbook build docs - - - name: Deploy - uses: peaceiris/actions-gh-pages@v3 - if: ${{ github.ref == 'refs/heads/main' }} - with: - github_token: ${{ secrets.GITHUB_TOKEN }} - publish_dir: ./docs/book diff --git a/.github/workflows/iai_benchs_main.yml b/.github/workflows/iai_benchs_main.yml deleted file mode 100644 index 0845b7ce0..000000000 --- a/.github/workflows/iai_benchs_main.yml +++ /dev/null @@ -1,32 +0,0 @@ -name: CI - -on: - push: - branches: [ main ] - -jobs: - cache_iai_benchs: - name: Cache iai benchs of main - runs-on: ubuntu-latest - steps: - - name: Install valgrind - run: | - sudo apt update - sudo apt-get install -y valgrind - cargo install --version 0.3.1 iai-callgrind-runner - - name: Install stable toolchain - uses: dtolnay/rust-toolchain@stable - with: - toolchain: stable - - uses: actions/checkout@v3 - - uses: Swatinem/rust-cache@v2 - with: - shared-key: ${{ runner.os }}-benchmark-build-cache - - name: Run benchmarks - run: cargo bench --no-fail-fast --bench "iai_*" - - name: Save cache - uses: actions/cache/save@v3 - with: - path: | - */target - key: ${{ runner.os }}-iai-benchmark-cache-${{ github.sha }} diff --git a/.github/workflows/iai_benchs_pr.yml b/.github/workflows/iai_benchs_pr.yml deleted file mode 100644 index 1aee916aa..000000000 --- a/.github/workflows/iai_benchs_pr.yml +++ /dev/null @@ -1,80 +0,0 @@ -name: CI - -on: - pull_request: - branches: [ '*' ] - -concurrency: - group: ${{ github.workflow }}-${{ github.ref }} - cancel-in-progress: true - -jobs: - fetch_iai_benchs: - name: Fetch iai benchmarks - runs-on: ubuntu-latest - steps: - - name: Check cache - id: cache-iai-results - uses: actions/cache/restore@v3 - with: - lookup-only: true - path: | - */target - key: ${{ runner.os }}-iai-benchmark-cache-${{ github.event.pull_request.base.sha }} - - name: Install valgrind - if: ${{ steps.cache-iai-results.outputs.cache-hit != 'true' }} - run: | - sudo apt update - sudo apt-get install -y valgrind - cargo install --version 0.3.1 iai-callgrind-runner - - name: Install stable toolchain - if: ${{ steps.cache-iai-results.outputs.cache-hit != 'true' }} - uses: dtolnay/rust-toolchain@stable - with: - toolchain: stable - - uses: actions/checkout@v3 - if: ${{ steps.cache-iai-results.outputs.cache-hit != 'true' }} - with: - ref: ${{ github.event.pull_request.base.sha }} - - uses: Swatinem/rust-cache@v2 - if: ${{ steps.cache-iai-results.outputs.cache-hit != 'true' }} - with: - shared-key: ${{ runner.os }}-benchmark-build-cache - - name: Run benchmarks - if: ${{ steps.cache-iai-results.outputs.cache-hit != 'true' }} - run: cargo bench --no-fail-fast --bench "iai_*" - - name: Save cache - if: ${{ steps.cache-iai-results.outputs.cache-hit != 'true' }} - uses: actions/cache/save@v3 - with: - path: | - */target - key: ${{ runner.os }}-iai-benchmark-cache-${{ github.event.pull_request.base.sha }} - run_iai_benchs: - name: Run iai benchmarks - needs: fetch_iai_benchs - runs-on: ubuntu-latest - steps: - - name: Install valgrind - run: | - sudo apt-get update - sudo apt-get install -y valgrind - cargo install --version 0.3.1 iai-callgrind-runner - - name: Install stable toolchain - uses: dtolnay/rust-toolchain@stable - with: - toolchain: stable - - uses: actions/checkout@v3 - - uses: Swatinem/rust-cache@v2 - with: - shared-key: ${{ runner.os }}-iai-benchmark-cache - - name: Restore cache - id: cache-iai-results - uses: actions/cache/restore@v3 - with: - path: | - */target - key: ${{ runner.os }}-iai-benchmark-cache-${{ github.event.pull_request.base.sha }} - fail-on-cache-miss: true - - name: Run benchmarks - run: cargo bench --no-fail-fast --bench "iai_*" diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml deleted file mode 100644 index fbf7926a2..000000000 --- a/.github/workflows/publish.yml +++ /dev/null @@ -1,22 +0,0 @@ -name: publish - -on: - push: - tags: - - "*" - -jobs: - publish: - name: Publish - runs-on: ubuntu-latest - steps: - - name: Checkout sources - uses: actions/checkout@v4 - - name: Install stable toolchain - uses: dtolnay/rust-toolchain@1.90.0 - - name: Publish crate lambdaworks-gpu - run: cargo publish -p lambdaworks-gpu --token ${{ secrets.CARGO_REGISTRY_TOKEN }} - - name: Publish crate lambdaworks-math - run: cargo publish -p lambdaworks-math --token ${{ secrets.CARGO_REGISTRY_TOKEN }} --features "parallel std alloc lambdaworks-serde-binary lambdaworks-serde-string proptest" - - name: Publish crate lambdaworks-crypto - run: cargo publish -p lambdaworks-crypto --token ${{ secrets.CARGO_REGISTRY_TOKEN }} --features "asm std serde parallel alloc" diff --git a/.gitignore b/.gitignore deleted file mode 100644 index e691dd6c4..000000000 --- a/.gitignore +++ /dev/null @@ -1,28 +0,0 @@ -# Generated by Cargo -# will have compiled files and executables -**/target/** - -# Remove Cargo.lock from gitignore if creating an executable, leave it for libraries -# More information here https://doc.rust-lang.org/cargo/guide/cargo-toml-vs-cargo-lock.html -Cargo.lock - -# These are backup files generated by rustfmt -**/*.rs.bk - -**/proptest-regressions -/output.txt -flamegraph.svg -proving_system/stark/src/cairo_run/program.memory -proving_system/stark/src/cairo_run/program.trace - -**/*.metallib -**/*.ptx - -**/.DS_Store - -ensure-no_std/target -# Files from fuzzers are inside a corpus folder -**/corpus/** -**/artifacts/** -/.idea/ - diff --git a/.gitmodules b/.gitmodules deleted file mode 100644 index e69de29bb..000000000 diff --git a/.nojekyll b/.nojekyll new file mode 100644 index 000000000..f17311098 --- /dev/null +++ b/.nojekyll @@ -0,0 +1 @@ +This file makes sure that Github Pages doesn't process mdBook's output. diff --git a/.rusty-hook.toml b/.rusty-hook.toml deleted file mode 100644 index 79862c083..000000000 --- a/.rusty-hook.toml +++ /dev/null @@ -1,5 +0,0 @@ -[hooks] -pre-commit = "cargo test && cargo clippy --all-targets -- -D warnings && cargo fmt --all -- --check" - -[logging] -verbose = true diff --git a/404.html b/404.html new file mode 100644 index 000000000..cc7b5bb66 --- /dev/null +++ b/404.html @@ -0,0 +1,187 @@ + + +
+ + +This URL is invalid, sorry. Please use the navigation bar or search to continue.
+ +