h33-substrate-verifier 0.1.0

Reference implementation of the H33 substrate response attestation verifier. Verifies X-H33-Receipt HTTP headers against three post-quantum signature families (Dilithium ML-DSA-65 + FALCON-512 + SPHINCS+-SHA2-128f) over the H33 58-byte substrate primitive. Standalone, no internal H33 dependencies, WASM-target-compatible.
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 = "h33-substrate-verifier"
version = "0.1.0"
authors = ["H33.ai, Inc. <support@h33.ai>"]
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Reference implementation of the H33 substrate response attestation verifier. Verifies X-H33-Receipt HTTP headers against three post-quantum signature families (Dilithium ML-DSA-65 + FALCON-512 + SPHINCS+-SHA2-128f) over the H33 58-byte substrate primitive. Standalone, no internal H33 dependencies, WASM-target-compatible."
homepage = "https://h33.ai/substrate"
documentation = "https://docs.rs/h33-substrate-verifier"
readme = "README.md"
keywords = [
    "h33",
    "post-quantum",
    "verification",
    "substrate",
    "attestation",
]
categories = [
    "cryptography",
    "authentication",
    "wasm",
]
license = "LicenseRef-Proprietary"
repository = "https://github.com/H33ai-postquantum/h33-substrate-verifier"

[features]
default = [
    "std",
    "dilithium",
    "falcon",
    "sphincs",
]
dilithium = ["dep:pqcrypto-mldsa"]
falcon = ["dep:pqcrypto-falcon"]
reqwest-support = ["dep:reqwest"]
sphincs = ["dep:pqcrypto-sphincsplus"]
std = [
    "thiserror/std",
    "serde/std",
    "serde_json/std",
    "hex/std",
    "base64/std",
    "sha3/std",
]

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

[[example]]
name = "verify_url"
path = "examples/verify_url.rs"
required-features = ["reqwest-support"]

[[test]]
name = "integration"
path = "tests/integration.rs"

[[bench]]
name = "verify"
path = "benches/verify.rs"
harness = false

[dependencies.base64]
version = "0.22"
features = ["alloc"]
default-features = false

[dependencies.hex]
version = "0.4"
features = ["alloc"]
default-features = false

[dependencies.pqcrypto-falcon]
version = "0.3"
optional = true

[dependencies.pqcrypto-mldsa]
version = "0.1"
optional = true

[dependencies.pqcrypto-sphincsplus]
version = "0.7"
optional = true

[dependencies.pqcrypto-traits]
version = "0.3"

[dependencies.reqwest]
version = "0.12"
features = ["rustls-tls"]
optional = true
default-features = false

[dependencies.serde]
version = "1.0"
features = [
    "derive",
    "alloc",
]
default-features = false

[dependencies.serde_json]
version = "1.0"
features = ["alloc"]
default-features = false

[dependencies.sha3]
version = "0.10"
default-features = false

[dependencies.thiserror]
version = "2.0"
default-features = false

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

[dev-dependencies.pretty_assertions]
version = "1.4"

[dev-dependencies.proptest]
version = "1.5"

[dev-dependencies.tokio]
version = "1.40"
features = [
    "rt",
    "macros",
]

[lints.clippy]
expect_used = "deny"
float_cmp = "deny"
indexing_slicing = "deny"
integer_division = "warn"
missing_errors_doc = "allow"
missing_panics_doc = "allow"
module_name_repetitions = "allow"
panic = "deny"
unwrap_used = "deny"

[lints.clippy.nursery]
level = "warn"
priority = -1

[lints.clippy.pedantic]
level = "warn"
priority = -1

[lints.rust]
missing_docs = "deny"
unreachable_pub = "warn"
unsafe_code = "forbid"

[lints.rust.rust_2018_idioms]
level = "deny"
priority = -1

[profile.release]
opt-level = 3
lto = "fat"
codegen-units = 1
strip = true