# 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"
name = "key-share"
version = "0.5.1"
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Key share of any Threshold Signature Scheme (TSS)"
readme = false
keywords = [
    "mpc",
    "threshold-signatures",
    "tss",
]
categories = ["cryptography"]
license = "MIT OR Apache-2.0"
repository = "https://github.com/LFDT-Lockness/cggmp21"

[package.metadata.docs.rs]
all-features = true
rustdoc-args = [
    "--cfg",
    "docsrs",
    "--html-in-header",
    "katex-header.html",
]

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

[dependencies.displaydoc]
version = "0.2"
default-features = false

[dependencies.generic-ec]
version = "0.4.1"
features = ["alloc"]
default-features = false

[dependencies.generic-ec-zkp]
version = "0.4.1"
features = ["alloc"]
default-features = false

[dependencies.hd-wallet]
version = "0.5"
optional = true
default-features = false

[dependencies.hex]
version = "0.4"
features = ["serde"]
optional = true
default-features = false

[dependencies.rand_core]
version = "0.6"
optional = true
default-features = false

[dependencies.serde]
version = "1"
features = [
    "alloc",
    "derive",
]
optional = true
default-features = false

[dependencies.serde_with]
version = "2"
features = ["alloc"]
optional = true
default-features = false

[dependencies.thiserror]
version = "1"
optional = true

[dependencies.udigest]
version = "0.2.1"
features = [
    "alloc",
    "derive",
]
optional = true
default-features = false

[dev-dependencies.rand_core]
version = "0.6"
features = ["getrandom"]
default-features = false

[features]
default = ["std"]
hd-wallet = ["dep:hd-wallet"]
serde = [
    "dep:serde",
    "serde_with",
    "hex",
    "generic-ec/serde",
]
spof = ["dep:rand_core"]
std = ["dep:thiserror"]
udigest = [
    "dep:udigest",
    "generic-ec/udigest",
]
