rust-kzg-bn254-prover 0.1.0

This library offers a set of functions for generating and interacting with bn254 KZG commitments and proofs in rust, with the motivation of supporting fraud and validity proof logic in EigenDA rollup integrations.
Documentation
Build #1691389 2025-01-30T21:27:03.437273+00:00
# rustc version
rustc 1.86.0-nightly (ae5de6c75 2025-01-29)# docs.rs version
docsrs 0.6.0 (29a0e81b 2025-01-22)# build log
[INFO] running `Command { std: "docker" "create" "-v" "/home/cratesfyi/workspace/builds/rust-kzg-bn254-prover-0.1.0/target:/opt/rustwide/target:rw,Z" "-v" "/home/cratesfyi/workspace/builds/rust-kzg-bn254-prover-0.1.0/source:/opt/rustwide/workdir:ro,Z" "-v" "/home/cratesfyi/workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/home/cratesfyi/workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "DOCS_RS=1" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "6442450944" "--cpus" "6" "--user" "1001:1001" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:c80049f3b88b82089a44e0f06d0d6029d44b96b7257e55a1cd63dbc9f4c33334" "/opt/rustwide/cargo-home/bin/cargo" "+nightly" "rustdoc" "--lib" "-Zrustdoc-map" "--config" "build.rustdocflags=[\"--cfg\", \"docsrs\", \"-Z\", \"unstable-options\", \"--emit=invocation-specific\", \"--resource-suffix\", \"-20250129-1.86.0-nightly-ae5de6c75\", \"--static-root-path\", \"/-/rustdoc.static/\", \"--cap-lints\", \"warn\", \"--extern-html-root-takes-precedence\"]" "--offline" "-Zunstable-options" "--config=doc.extern-map.registries.crates-io=\"https://docs.rs/{pkg_name}/{version}/i686-pc-windows-msvc\"" "-Zrustdoc-scrape-examples" "-j6" "--target" "i686-pc-windows-msvc", kill_on_drop: false }`
[INFO] [stdout] 61c1578f393cd161ea176da25fcaa589731fcbaf81b77f00a6172417ce89875d
[INFO] [stderr] WARNING: Your kernel does not support swap limit capabilities or the cgroup is not mounted. Memory limited without swap.
[INFO] running `Command { std: "docker" "start" "-a" "61c1578f393cd161ea176da25fcaa589731fcbaf81b77f00a6172417ce89875d", kill_on_drop: false }`
[INFO] [stderr] warning: target filter specified, but no targets matched; this is a no-op
[INFO] [stderr]  Documenting rust-kzg-bn254-prover v0.1.0 (/opt/rustwide/workdir)
[INFO] [stderr] warning: unresolved link to `blob::Blob`
[INFO] [stderr]   --> src/lib.rs:10:21
[INFO] [stderr]    |
[INFO] [stderr] 10 | //! > user data -> [blob::Blob] ->
[INFO] [stderr]    |                     ^^^^^^^^^^ no item named `blob` in scope
[INFO] [stderr]    |
[INFO] [stderr]    = note: `#[warn(rustdoc::broken_intra_doc_links)]` on by default
[INFO] [stderr] 
[INFO] [stderr] warning: unresolved link to `polynomial::PolynomialEvalForm`
[INFO] [stderr]   --> src/lib.rs:11:8
[INFO] [stderr]    |
[INFO] [stderr] 11 | //! > [polynomial::PolynomialEvalForm]/[polynomial::PolynomialCoeffForm] -> KZG
[INFO] [stderr]    |        ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ no item named `polynomial` in scope
[INFO] [stderr] 
[INFO] [stderr] warning: unresolved link to `polynomial::PolynomialCoeffForm`
[INFO] [stderr]   --> src/lib.rs:11:41
[INFO] [stderr]    |
[INFO] [stderr] 11 | //! > [polynomial::PolynomialEvalForm]/[polynomial::PolynomialCoeffForm] -> KZG
[INFO] [stderr]    |                                         ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ no item named `polynomial` in scope
[INFO] [stderr] 
[INFO] [stderr] warning: unresolved link to `Kzg`
[INFO] [stderr]   --> src/kzg.rs:17:6
[INFO] [stderr]    |
[INFO] [stderr] 17 | /// [Kzg] is a struct that holds the SRS points in monomial form, and
[INFO] [stderr]    |      ^^^ no item named `Kzg` in scope
[INFO] [stderr]    |
[INFO] [stderr]    = help: to escape `[` and `]` characters, add '\' before them like `\[` or `\]`
[INFO] [stderr] 
[INFO] [stderr] warning: unresolved link to `Kzg`
[INFO] [stderr]   --> src/kzg.rs:83:64
[INFO] [stderr]    |
[INFO] [stderr] 83 |     /// Commit the polynomial with the srs values loaded into [Kzg].
[INFO] [stderr]    |                                                                ^^^ no item named `Kzg` in scope
[INFO] [stderr]    |
[INFO] [stderr]    = help: to escape `[` and `]` characters, add '\' before them like `\[` or `\]`
[INFO] [stderr] 
[INFO] [stderr] warning: unresolved link to `Kzg`
[INFO] [stderr]    --> src/kzg.rs:105:64
[INFO] [stderr]     |
[INFO] [stderr] 105 |     /// Commit the polynomial with the srs values loaded into [Kzg].
[INFO] [stderr]     |                                                                ^^^ no item named `Kzg` in scope
[INFO] [stderr]     |
[INFO] [stderr]     = help: to escape `[` and `]` characters, add '\' before them like `\[` or `\]`
[INFO] [stderr] 
[INFO] [stderr] warning: unresolved link to `Kzg::commit_eval_form`
[INFO] [stderr]    --> src/kzg.rs:180:23
[INFO] [stderr]     |
[INFO] [stderr] 180 |     /// then calling [Kzg::commit_eval_form].
[INFO] [stderr]     |                       ^^^^^^^^^^^^^^^^^^^^^ no item named `Kzg` in scope
[INFO] [stderr] 
[INFO] [stderr] warning: Rust code block is empty
[INFO] [stderr]   --> src/lib.rs:76:5
[INFO] [stderr]    |
[INFO] [stderr] 76 |   //! ```rust
[INFO] [stderr]    |  _____^
[INFO] [stderr] 77 | | //! // TODO:
[INFO] [stderr] 78 | | //! ```
[INFO] [stderr]    | |_______^
[INFO] [stderr]    |
[INFO] [stderr]    = note: `#[warn(rustdoc::invalid_rust_codeblocks)]` on by default
[INFO] [stderr] 
[INFO] [stderr] warning: this URL is not a hyperlink
[INFO] [stderr]    --> src/kzg.rs:213:64
[INFO] [stderr]     |
[INFO] [stderr] 213 |     /// TODO(anupsv): Accept bytes instead of Fr element. Ref: https://github.com/Layr-Labs/rust-kzg-bn254/issues/29
[INFO] [stderr]     |                                                                ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stderr]     |
[INFO] [stderr]     = note: bare URLs are not automatically turned into clickable links
[INFO] [stderr]     = note: `#[warn(rustdoc::bare_urls)]` on by default
[INFO] [stderr] help: use an automatic link instead
[INFO] [stderr]     |
[INFO] [stderr] 213 |     /// TODO(anupsv): Accept bytes instead of Fr element. Ref: <https://github.com/Layr-Labs/rust-kzg-bn254/issues/29>
[INFO] [stderr]     |                                                                +                                                     +
[INFO] [stderr] 
[INFO] [stderr] warning: this URL is not a hyperlink
[INFO] [stderr]    --> src/kzg.rs:286:66
[INFO] [stderr]     |
[INFO] [stderr] 286 |     /// TODO(anupsv): Match 4844 specs w.r.t to the inputs. Ref: https://github.com/Layr-Labs/rust-kzg-bn254/issues/30
[INFO] [stderr]     |                                                                  ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stderr]     |
[INFO] [stderr]     = note: bare URLs are not automatically turned into clickable links
[INFO] [stderr] help: use an automatic link instead
[INFO] [stderr]     |
[INFO] [stderr] 286 |     /// TODO(anupsv): Match 4844 specs w.r.t to the inputs. Ref: <https://github.com/Layr-Labs/rust-kzg-bn254/issues/30>
[INFO] [stderr]     |                                                                  +                                                     +
[INFO] [stderr] 
[INFO] [stderr] warning: `rust-kzg-bn254-prover` (lib doc) generated 10 warnings (run `cargo fix --lib -p rust-kzg-bn254-prover` to apply 2 suggestions)
[INFO] [stderr]     Finished `dev` profile [unoptimized + debuginfo] target(s) in 0.50s
[INFO] [stderr]    Generated /opt/rustwide/target/i686-pc-windows-msvc/doc/rust_kzg_bn254_prover/index.html
[INFO] running `Command { std: "docker" "inspect" "61c1578f393cd161ea176da25fcaa589731fcbaf81b77f00a6172417ce89875d", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "rm" "-f" "61c1578f393cd161ea176da25fcaa589731fcbaf81b77f00a6172417ce89875d", kill_on_drop: false }`
[INFO] [stdout] 61c1578f393cd161ea176da25fcaa589731fcbaf81b77f00a6172417ce89875d