dory-pcs 0.3.0

A high performance and modular implementation of the Dory polynomial commitment scheme.
Documentation
# THIS FILE IS AUTOMATICALLY GENERATED BY CARGO
#
# When uploading crates to the registry Cargo will automatically
# "normalize" Cargo.toml files for maximal compatibility
# with all versions of Cargo and also rewrite `path` dependencies
# to registry (e.g., crates.io) dependencies.
#
# If you are reading this file be aware that the original Cargo.toml
# will likely look very different (and much more reasonable).
# See Cargo.toml.orig for the original contents.

[package]
edition = "2021"
rust-version = "1.75"
name = "dory-pcs"
version = "0.3.0"
authors = ["Markos Georghiades <mgeorghiades@a16z.com>"]
build = false
include = [
    "src/**",
    "examples/**",
    "benches/**",
    "README.md",
    "CHANGELOG.md",
    "LICENSE-APACHE",
    "LICENSE-MIT",
    "Cargo.toml",
]
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "A high performance and modular implementation of the Dory polynomial commitment scheme."
documentation = "https://docs.rs/dory-pcs"
readme = "README.md"
keywords = [
    "cryptography",
    "zkp",
    "commitment",
    "polynomial",
    "pcs",
]
categories = [
    "cryptography",
    "algorithms",
]
license = "Apache-2.0 OR MIT"
repository = "https://github.com/a16z/dory"

[package.metadata.docs.rs]
all-features = true

[features]
arkworks = [
    "dep:ark-bn254",
    "dep:ark-ec",
    "dep:ark-ff",
    "dep:ark-serialize",
    "dep:ark-std",
    "dep:blake2",
    "dep:digest",
    "dep:bincode",
    "dep:serde",
]
backends = [
    "arkworks",
    "disk-persistence",
]
cache = [
    "arkworks",
    "parallel",
]
default = []
disk-persistence = []
parallel = [
    "dep:rayon",
    "ark-ec?/parallel",
    "ark-ff?/parallel",
]
zk = []

[lib]
name = "dory_pcs"
path = "src/lib.rs"

[[example]]
name = "basic_e2e"
path = "examples/basic_e2e.rs"
required-features = ["backends"]

[[example]]
name = "homomorphic"
path = "examples/homomorphic.rs"
required-features = ["backends"]

[[example]]
name = "homomorphic_mixed_sizes"
path = "examples/homomorphic_mixed_sizes.rs"
required-features = ["backends"]

[[example]]
name = "non_square"
path = "examples/non_square.rs"
required-features = ["backends"]

[[example]]
name = "zk_e2e"
path = "examples/zk_e2e.rs"
required-features = [
    "backends",
    "zk",
]

[[example]]
name = "zk_statistical"
path = "examples/zk_statistical.rs"
required-features = [
    "backends",
    "zk",
]

[[bench]]
name = "arkworks_proof"
path = "benches/arkworks_proof.rs"
harness = false
required-features = [
    "backends",
    "cache",
    "parallel",
]

[dependencies.ark-bn254]
version = "0.5.0"
optional = true

[dependencies.ark-ec]
version = "0.5"
optional = true

[dependencies.ark-ff]
version = "0.5"
optional = true

[dependencies.ark-serialize]
version = "0.5"
optional = true

[dependencies.ark-std]
version = "0.5"
optional = true

[dependencies.bincode]
version = "1.3"
optional = true

[dependencies.blake2]
version = "0.10"
optional = true

[dependencies.digest]
version = "0.10"
optional = true

[dependencies.dory-derive]
version = "0.3.0"

[dependencies.rand_core]
version = "0.6"
features = ["getrandom"]

[dependencies.rayon]
version = "1.10"
optional = true

[dependencies.serde]
version = "1.0"
features = ["derive"]
optional = true

[dependencies.thiserror]
version = "2.0"

[dependencies.tracing]
version = "0.1"

[dev-dependencies.criterion]
version = "0.5"
features = ["html_reports"]

[dev-dependencies.rand]
version = "0.8"

[dev-dependencies.tracing-subscriber]
version = "0.3"
features = ["fmt"]

[lints.clippy]
missing_errors_doc = "warn"
missing_panics_doc = "warn"

[lints.rust]
missing_docs = "warn"
unreachable_pub = "warn"