mirror of
https://github.com/serai-dex/serai.git
synced 2025-01-10 21:04:40 +00:00
b296be8515
* Add SignalsConfig to chain_spec * Correct multiexp feature flagging for rand_core std * Remove bincode for borsh Replaces a non-canonical encoding with a canonical encoding which additionally should be faster. Also fixes an issue where we used bincode in transcripts where it cannot be trusted. This ended up fixing a myriad of other bugs observed, unfortunately. Accordingly, it either has to be merged or the bug fixes from it must be ported to a new PR. * Make serde optional, minimize usage * Make borsh an optional dependency of substrate/ crates * Remove unused dependencies * Use [u8; 64] where possible in the processor messages * Correct borsh feature flagging
66 lines
2 KiB
TOML
66 lines
2 KiB
TOML
[package]
|
|
name = "dkg"
|
|
version = "0.5.1"
|
|
description = "Distributed key generation over ff/group"
|
|
license = "MIT"
|
|
repository = "https://github.com/serai-dex/serai/tree/develop/crypto/dkg"
|
|
authors = ["Luke Parker <lukeparker5132@gmail.com>"]
|
|
keywords = ["dkg", "multisig", "threshold", "ff", "group"]
|
|
edition = "2021"
|
|
rust-version = "1.70"
|
|
|
|
[package.metadata.docs.rs]
|
|
all-features = true
|
|
rustdoc-args = ["--cfg", "docsrs"]
|
|
|
|
[dependencies]
|
|
thiserror = { version = "1", default-features = false, optional = true }
|
|
|
|
rand_core = { version = "0.6", default-features = false }
|
|
|
|
zeroize = { version = "^1.5", default-features = false, features = ["zeroize_derive"] }
|
|
|
|
std-shims = { version = "0.1", path = "../../common/std-shims", default-features = false }
|
|
|
|
borsh = { version = "1", default-features = false, features = ["derive", "de_strict_order"], optional = true }
|
|
serde = { version = "1", default-features = false, features = ["derive"], optional = true }
|
|
|
|
transcript = { package = "flexible-transcript", path = "../transcript", version = "^0.3.2", default-features = false, features = ["recommended"] }
|
|
chacha20 = { version = "0.9", default-features = false, features = ["zeroize"] }
|
|
|
|
ciphersuite = { path = "../ciphersuite", version = "^0.4.1", default-features = false }
|
|
multiexp = { path = "../multiexp", version = "0.4", default-features = false }
|
|
|
|
schnorr = { package = "schnorr-signatures", path = "../schnorr", version = "^0.5.1", default-features = false }
|
|
dleq = { path = "../dleq", version = "^0.4.1", default-features = false }
|
|
|
|
[dev-dependencies]
|
|
rand_core = { version = "0.6", default-features = false, features = ["getrandom"] }
|
|
ciphersuite = { path = "../ciphersuite", default-features = false, features = ["ristretto"] }
|
|
|
|
[features]
|
|
std = [
|
|
"thiserror",
|
|
|
|
"rand_core/std",
|
|
|
|
"std-shims/std",
|
|
|
|
"borsh?/std",
|
|
"serde?/std",
|
|
|
|
"transcript/std",
|
|
"chacha20/std",
|
|
|
|
"ciphersuite/std",
|
|
"multiexp/std",
|
|
"multiexp/batch",
|
|
|
|
"schnorr/std",
|
|
"dleq/std",
|
|
"dleq/serialize"
|
|
]
|
|
borsh = ["dep:borsh"]
|
|
serde = ["dep:serde"]
|
|
tests = ["rand_core/getrandom"]
|
|
default = ["std"]
|