crypto-vote 0.4.2

Sign and verify anonymous, double-vote-resistant ballots with linkable BLSAG ring signatures over Ristretto255 + Blake2b-512. Native CLI and WebAssembly (browser + WASI) builds.
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 = "2024"
name = "crypto-vote"
version = "0.4.2"
build = false
exclude = [
    ".github",
    ".gitignore",
    "AGENTS.md",
]
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Sign and verify anonymous, double-vote-resistant ballots with linkable BLSAG ring signatures over Ristretto255 + Blake2b-512. Native CLI and WebAssembly (browser + WASI) builds."
readme = "README.md"
keywords = [
    "voting",
    "cryptography",
    "ring-signature",
    "blsag",
    "blake2",
]
categories = [
    "cryptography",
    "wasm",
]
license = "AGPL-3.0-or-later"
repository = "https://github.com/CondorcetVote/cryptoVote"

[package.metadata.wasm-pack.profile.custom]
wasm-opt = [
    "-Oz",
    "--enable-bulk-memory",
    "--enable-nontrapping-float-to-int",
    "--enable-sign-ext",
    "--enable-mutable-globals",
    "--enable-reference-types",
]

[features]
cli = ["dep:clap"]
default = ["cli"]
extism = [
    "dep:extism-pdk",
    "dep:serde",
]
wasm = [
    "dep:wasm-bindgen",
    "dep:js-sys",
    "dep:getrandom",
    "getrandom/wasm_js",
]

[lib]
name = "crypto_vote"
crate-type = [
    "cdylib",
    "rlib",
]
path = "src/lib.rs"

[[bin]]
name = "cryptovote"
path = "src/main.rs"
required-features = ["cli"]

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

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

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

[dependencies.blake2]
version = "0.11.0-rc.6"
default-features = false

[dependencies.blake3]
version = "1"
features = ["pure"]
default-features = false

[dependencies.clap]
version = "4"
features = ["derive"]
optional = true

[dependencies.curve25519-dalek]
version = "5.0.0"
features = [
    "digest",
    "rand_core",
    "zeroize",
]

[dependencies.extism-pdk]
version = "1"
optional = true

[dependencies.getrandom]
version = "0.4"
optional = true

[dependencies.hex]
version = "0.4"

[dependencies.js-sys]
version = "0.3"
optional = true

[dependencies.rand]
version = "0.10"
features = [
    "std",
    "sys_rng",
]
default-features = false

[dependencies.rand_core]
version = "0.10"

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

[dependencies.unicode-normalization]
version = "0.1"

[dependencies.wasm-bindgen]
version = "0.2"
optional = true

[dependencies.zeroize]
version = "1"

[dev-dependencies.criterion]
version = "0.8"
features = ["cargo_bench_support"]
default-features = false

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

[profile.wasm-release]
panic = "abort"
inherits = "release"