2022-04-22 01:36:18 +00:00
|
|
|
[package]
|
2022-04-28 02:48:58 +00:00
|
|
|
name = "monero-serai"
|
2022-04-22 01:36:18 +00:00
|
|
|
version = "0.1.0"
|
2022-05-31 06:12:14 +00:00
|
|
|
description = "A modern Monero wallet library"
|
2022-04-22 01:36:18 +00:00
|
|
|
license = "MIT"
|
|
|
|
authors = ["Luke Parker <lukeparker5132@gmail.com>"]
|
|
|
|
edition = "2021"
|
|
|
|
|
|
|
|
[dependencies]
|
2022-06-28 04:01:20 +00:00
|
|
|
hex-literal = "0.3"
|
2022-04-22 01:36:18 +00:00
|
|
|
lazy_static = "1"
|
|
|
|
thiserror = "1"
|
|
|
|
|
|
|
|
rand_core = "0.6"
|
2022-05-06 11:33:08 +00:00
|
|
|
rand_chacha = { version = "0.3", optional = true }
|
2022-05-20 05:03:54 +00:00
|
|
|
rand = "0.8"
|
|
|
|
rand_distr = "0.4"
|
2022-04-22 01:36:18 +00:00
|
|
|
|
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
|
|
|
zeroize = { version = "1.3", features = ["zeroize_derive"] }
|
2022-07-10 01:51:39 +00:00
|
|
|
subtle = "2.4"
|
|
|
|
|
2022-05-06 11:33:44 +00:00
|
|
|
tiny-keccak = { version = "2", features = ["keccak"] }
|
2022-06-06 06:18:25 +00:00
|
|
|
blake2 = { version = "0.10", optional = true }
|
2022-04-22 01:36:18 +00:00
|
|
|
|
2022-05-14 04:59:14 +00:00
|
|
|
curve25519-dalek = { version = "3", features = ["std"] }
|
2022-04-22 01:36:18 +00:00
|
|
|
|
2022-07-10 20:11:55 +00:00
|
|
|
group = { version = "0.12" }
|
|
|
|
dalek-ff-group = { path = "../../crypto/dalek-ff-group" }
|
2022-08-01 02:45:53 +00:00
|
|
|
multiexp = { path = "../../crypto/multiexp", features = ["batch"] }
|
2022-05-28 23:56:59 +00:00
|
|
|
|
2022-06-27 13:02:21 +00:00
|
|
|
transcript = { package = "flexible-transcript", path = "../../crypto/transcript", features = ["recommended"], optional = true }
|
2022-06-19 09:21:22 +00:00
|
|
|
frost = { package = "modular-frost", path = "../../crypto/frost", features = ["ed25519"], optional = true }
|
2022-07-30 22:35:39 +00:00
|
|
|
dleq = { path = "../../crypto/dleq", features = ["serialize"], optional = true }
|
2022-04-22 01:36:18 +00:00
|
|
|
|
2022-05-06 11:33:44 +00:00
|
|
|
hex = "0.4"
|
2022-04-28 07:31:09 +00:00
|
|
|
serde = { version = "1.0", features = ["derive"] }
|
|
|
|
serde_json = "1.0"
|
2022-07-10 01:51:39 +00:00
|
|
|
|
|
|
|
base58-monero = "1"
|
2022-04-28 07:31:09 +00:00
|
|
|
monero-epee-bin-serde = "1.0"
|
2022-07-10 01:51:39 +00:00
|
|
|
monero = "0.16"
|
|
|
|
|
2022-04-28 07:31:09 +00:00
|
|
|
reqwest = { version = "0.11", features = ["json"] }
|
2022-04-22 01:36:18 +00:00
|
|
|
|
|
|
|
[features]
|
2022-07-10 20:11:55 +00:00
|
|
|
multisig = ["rand_chacha", "blake2", "transcript", "frost", "dleq"]
|
2022-04-22 01:36:18 +00:00
|
|
|
|
|
|
|
[dev-dependencies]
|
2022-06-03 07:56:17 +00:00
|
|
|
sha2 = "0.10"
|
2022-05-06 11:33:44 +00:00
|
|
|
tokio = { version = "1", features = ["full"] }
|