2022-04-22 01:36:18 +00:00
|
|
|
[package]
|
2022-06-19 09:21:22 +00:00
|
|
|
name = "modular-frost"
|
2022-11-11 03:35:09 +00:00
|
|
|
version = "0.5.0"
|
2022-06-19 09:21:22 +00:00
|
|
|
description = "Modular implementation of FROST over ff/group"
|
2022-04-22 01:36:18 +00:00
|
|
|
license = "MIT"
|
2022-10-16 03:46:22 +00:00
|
|
|
repository = "https://github.com/serai-dex/serai/tree/develop/crypto/frost"
|
2022-05-03 11:20:24 +00:00
|
|
|
authors = ["Luke Parker <lukeparker5132@gmail.com>"]
|
2022-06-19 09:21:22 +00:00
|
|
|
keywords = ["frost", "multisig", "threshold"]
|
2022-04-22 01:36:18 +00:00
|
|
|
edition = "2021"
|
|
|
|
|
2022-09-28 12:44:49 +00:00
|
|
|
[package.metadata.docs.rs]
|
|
|
|
all-features = true
|
2022-09-29 08:47:55 +00:00
|
|
|
rustdoc-args = ["--cfg", "docsrs"]
|
2022-09-28 12:44:49 +00:00
|
|
|
|
2022-04-22 01:36:18 +00:00
|
|
|
[dependencies]
|
2022-05-03 11:20:24 +00:00
|
|
|
thiserror = "1"
|
2022-04-22 01:36:18 +00:00
|
|
|
|
2022-12-14 01:25:32 +00:00
|
|
|
rand_core = "0.6"
|
2022-12-09 00:04:35 +00:00
|
|
|
rand_chacha = "0.3"
|
Utilize zeroize (#76)
* Apply Zeroize to nonces used in Bulletproofs
Also makes bit decomposition constant time for a given amount of
outputs.
* Fix nonce reuse for single-signer CLSAG
* Attach Zeroize to most structures in Monero, and ZOnDrop to anything with private data
* Zeroize private keys and nonces
* Merge prepare_outputs and prepare_transactions
* Ensure CLSAG is constant time
* Pass by borrow where needed, bug fixes
The past few commitments have been one in-progress chunk which I've
broken up as best read.
* Add Zeroize to FROST structs
Still needs to zeroize internally, yet next step. Not quite as
aggressive as Monero, partially due to the limitations of HashMaps,
partially due to less concern about metadata, yet does still delete a
few smaller items of metadata (group key, context string...).
* Remove Zeroize from most Monero multisig structs
These structs largely didn't have private data, just fields with private
data, yet those fields implemented ZeroizeOnDrop making them already
covered. While there is still traces of the transaction left in RAM,
fully purging that was never the intent.
* Use Zeroize within dleq
bitvec doesn't offer Zeroize, so a manual zeroing has been implemented.
* Use Zeroize for random_nonce
It isn't perfect, due to the inability to zeroize the digest, and due to
kp256 requiring a few transformations. It does the best it can though.
Does move the per-curve random_nonce to a provided one, which is allowed
as of https://github.com/cfrg/draft-irtf-cfrg-frost/pull/231.
* Use Zeroize on FROST keygen/signing
* Zeroize constant time multiexp.
* Correct when FROST keygen zeroizes
* Move the FROST keys Arc into FrostKeys
Reduces amount of instances in memory.
* Manually implement Debug for FrostCore to not leak the secret share
* Misc bug fixes
* clippy + multiexp test bug fixes
* Correct FROST key gen share summation
It leaked our own share for ourself.
* Fix cross-group DLEq tests
2022-08-03 08:25:18 +00:00
|
|
|
|
2022-09-29 06:24:33 +00:00
|
|
|
zeroize = { version = "1.5", features = ["zeroize_derive"] }
|
2022-10-13 04:38:36 +00:00
|
|
|
subtle = "2"
|
Utilize zeroize (#76)
* Apply Zeroize to nonces used in Bulletproofs
Also makes bit decomposition constant time for a given amount of
outputs.
* Fix nonce reuse for single-signer CLSAG
* Attach Zeroize to most structures in Monero, and ZOnDrop to anything with private data
* Zeroize private keys and nonces
* Merge prepare_outputs and prepare_transactions
* Ensure CLSAG is constant time
* Pass by borrow where needed, bug fixes
The past few commitments have been one in-progress chunk which I've
broken up as best read.
* Add Zeroize to FROST structs
Still needs to zeroize internally, yet next step. Not quite as
aggressive as Monero, partially due to the limitations of HashMaps,
partially due to less concern about metadata, yet does still delete a
few smaller items of metadata (group key, context string...).
* Remove Zeroize from most Monero multisig structs
These structs largely didn't have private data, just fields with private
data, yet those fields implemented ZeroizeOnDrop making them already
covered. While there is still traces of the transaction left in RAM,
fully purging that was never the intent.
* Use Zeroize within dleq
bitvec doesn't offer Zeroize, so a manual zeroing has been implemented.
* Use Zeroize for random_nonce
It isn't perfect, due to the inability to zeroize the digest, and due to
kp256 requiring a few transformations. It does the best it can though.
Does move the per-curve random_nonce to a provided one, which is allowed
as of https://github.com/cfrg/draft-irtf-cfrg-frost/pull/231.
* Use Zeroize on FROST keygen/signing
* Zeroize constant time multiexp.
* Correct when FROST keygen zeroizes
* Move the FROST keys Arc into FrostKeys
Reduces amount of instances in memory.
* Manually implement Debug for FrostCore to not leak the secret share
* Misc bug fixes
* clippy + multiexp test bug fixes
* Correct FROST key gen share summation
It leaked our own share for ourself.
* Fix cross-group DLEq tests
2022-08-03 08:25:18 +00:00
|
|
|
|
2022-06-03 05:25:46 +00:00
|
|
|
hex = "0.4"
|
2022-04-22 01:36:18 +00:00
|
|
|
|
2022-10-29 08:54:42 +00:00
|
|
|
digest = "0.10"
|
|
|
|
|
|
|
|
hkdf = "0.12"
|
|
|
|
chacha20 = { version = "0.9", features = ["zeroize"] }
|
2022-06-06 06:18:25 +00:00
|
|
|
|
|
|
|
group = "0.12"
|
|
|
|
|
2022-08-29 07:32:59 +00:00
|
|
|
dalek-ff-group = { path = "../dalek-ff-group", version = "^0.1.2", optional = true }
|
2022-10-29 09:21:04 +00:00
|
|
|
minimal-ed448 = { path = "../ed448", version = "^0.1.2", optional = true }
|
2022-06-05 20:08:51 +00:00
|
|
|
|
2022-10-29 08:54:42 +00:00
|
|
|
ciphersuite = { path = "../ciphersuite", version = "0.1", features = ["std"] }
|
|
|
|
|
2022-11-05 22:43:36 +00:00
|
|
|
transcript = { package = "flexible-transcript", path = "../transcript", version = "0.2", features = ["recommended"] }
|
2022-04-22 01:36:18 +00:00
|
|
|
|
2022-07-12 07:38:59 +00:00
|
|
|
multiexp = { path = "../multiexp", version = "0.2", features = ["batch"] }
|
2022-05-03 11:42:09 +00:00
|
|
|
|
2022-11-11 03:35:09 +00:00
|
|
|
schnorr = { package = "schnorr-signatures", path = "../schnorr", version = "0.2" }
|
|
|
|
dleq = { path = "../dleq", version = "0.2", features = ["serialize"] }
|
2022-07-12 05:28:01 +00:00
|
|
|
|
2022-11-11 03:35:09 +00:00
|
|
|
dkg = { path = "../dkg", version = "0.2" }
|
2022-10-29 08:54:42 +00:00
|
|
|
|
2022-04-22 01:36:18 +00:00
|
|
|
[dev-dependencies]
|
2022-10-13 04:38:36 +00:00
|
|
|
serde_json = "1"
|
2022-06-05 20:08:51 +00:00
|
|
|
|
2022-11-15 00:20:56 +00:00
|
|
|
dkg = { path = "../dkg", version = "0.2", features = ["tests"] }
|
|
|
|
|
2022-06-05 20:08:51 +00:00
|
|
|
[features]
|
2022-10-29 08:54:42 +00:00
|
|
|
ed25519 = ["dalek-ff-group", "ciphersuite/ed25519"]
|
|
|
|
ristretto = ["dalek-ff-group", "ciphersuite/ristretto"]
|
2022-08-29 07:32:59 +00:00
|
|
|
|
2022-10-29 08:54:42 +00:00
|
|
|
secp256k1 = ["ciphersuite/secp256k1"]
|
|
|
|
p256 = ["ciphersuite/p256"]
|
2022-08-29 07:32:59 +00:00
|
|
|
|
2022-10-29 08:54:42 +00:00
|
|
|
ed448 = ["minimal-ed448", "ciphersuite/ed448"]
|
2022-10-16 03:46:22 +00:00
|
|
|
|
2022-10-29 08:54:42 +00:00
|
|
|
tests = ["dkg/tests"]
|