Move the contents of the evrf/ folder to the crypto/ folder

It was justified when it had several libraries, which it no longer does thanks
to the upstreaming with monero-oxide.
This commit is contained in:
Luke Parker
2025-08-28 23:55:05 -04:00
parent 5526b8d439
commit ffe1b60a11
14 changed files with 26 additions and 26 deletions

View File

@@ -41,8 +41,8 @@ members = [
"crypto/prime-field", "crypto/prime-field",
"crypto/short-weierstrass", "crypto/short-weierstrass",
"crypto/evrf/secq256k1", "crypto/secq256k1",
"crypto/evrf/embedwards25519", "crypto/embedwards25519",
"crypto/dkg", "crypto/dkg",
"crypto/dkg/recovery", "crypto/dkg/recovery",

View File

@@ -42,15 +42,15 @@ generalized-bulletproofs-ec-gadgets = { git = "https://github.com/monero-oxide/m
dkg = { path = ".." } dkg = { path = ".." }
ciphersuite-kp256 = { path = "../../ciphersuite/kp256", default-features = false, optional = true } ciphersuite-kp256 = { path = "../../ciphersuite/kp256", default-features = false, optional = true }
secq256k1 = { path = "../../evrf/secq256k1", optional = true } secq256k1 = { path = "../../secq256k1", optional = true }
dalek-ff-group = { path = "../../dalek-ff-group", default-features = false, optional = true } dalek-ff-group = { path = "../../dalek-ff-group", default-features = false, optional = true }
embedwards25519 = { path = "../../evrf/embedwards25519", default-features = false, features = ["alloc"], optional = true } embedwards25519 = { path = "../../embedwards25519", default-features = false, features = ["alloc"], optional = true }
[dev-dependencies] [dev-dependencies]
rand_core = { version = "0.6", default-features = false, features = ["getrandom"] } rand_core = { version = "0.6", default-features = false, features = ["getrandom"] }
rand = { version = "0.8", default-features = false, features = ["std"] } rand = { version = "0.8", default-features = false, features = ["std"] }
ciphersuite = { path = "../../ciphersuite", default-features = false, features = ["std"] } ciphersuite = { path = "../../ciphersuite", default-features = false, features = ["std"] }
embedwards25519 = { path = "../../evrf/embedwards25519", default-features = false, features = ["std"] } embedwards25519 = { path = "../../embedwards25519", default-features = false, features = ["std"] }
dalek-ff-group = { path = "../../dalek-ff-group", default-features = false, features = ["std"] } dalek-ff-group = { path = "../../dalek-ff-group", default-features = false, features = ["std"] }
generalized-bulletproofs = { git = "https://github.com/monero-oxide/monero-oxide", rev = "a6f8797007e768488568b821435cf5006517a962", features = ["tests"] } generalized-bulletproofs = { git = "https://github.com/monero-oxide/monero-oxide", rev = "a6f8797007e768488568b821435cf5006517a962", features = ["tests"] }
dkg-recovery = { path = "../recovery" } dkg-recovery = { path = "../recovery" }

View File

@@ -3,7 +3,7 @@ name = "embedwards25519"
version = "0.1.0" version = "0.1.0"
description = "A curve defined over the Ed25519 scalar field" description = "A curve defined over the Ed25519 scalar field"
license = "MIT" license = "MIT"
repository = "https://github.com/serai-dex/serai/tree/develop/crypto/evrf/embedwards25519" repository = "https://github.com/serai-dex/serai/tree/develop/crypto/embedwards25519"
authors = ["Luke Parker <lukeparker5132@gmail.com>"] authors = ["Luke Parker <lukeparker5132@gmail.com>"]
keywords = ["curve25519", "ed25519", "ristretto255", "group"] keywords = ["curve25519", "ed25519", "ristretto255", "group"]
edition = "2021" edition = "2021"
@@ -16,19 +16,19 @@ rustdoc-args = ["--cfg", "docsrs"]
[dependencies] [dependencies]
hex-literal = { version = "0.4", default-features = false } hex-literal = { version = "0.4", default-features = false }
std-shims = { version = "0.1", path = "../../../common/std-shims", default-features = false, optional = true } std-shims = { version = "0.1", path = "../../common/std-shims", default-features = false, optional = true }
zeroize = { version = "^1.5", default-features = false, features = ["zeroize_derive"] } zeroize = { version = "^1.5", default-features = false, features = ["zeroize_derive"] }
generic-array = { version = "1", default-features = false } generic-array = { version = "1", default-features = false }
prime-field = { path = "../../prime-field", default-features = false } prime-field = { path = "../prime-field", default-features = false }
short-weierstrass = { path = "../../short-weierstrass", default-features = false } short-weierstrass = { path = "../short-weierstrass", default-features = false }
curve25519-dalek = { version = "4", default-features = false, features = ["legacy_compatibility"] } curve25519-dalek = { version = "4", default-features = false, features = ["legacy_compatibility"] }
dalek-ff-group = { path = "../../dalek-ff-group", version = "0.4", default-features = false } dalek-ff-group = { path = "../dalek-ff-group", version = "0.4", default-features = false }
blake2 = { version = "0.10", default-features = false } blake2 = { version = "0.10", default-features = false }
ciphersuite = { path = "../../ciphersuite", version = "0.4", default-features = false } ciphersuite = { path = "../ciphersuite", version = "0.4", default-features = false }
generalized-bulletproofs-ec-gadgets = { git = "https://github.com/monero-oxide/monero-oxide", rev = "a6f8797007e768488568b821435cf5006517a962", default-features = false, optional = true } generalized-bulletproofs-ec-gadgets = { git = "https://github.com/monero-oxide/monero-oxide", rev = "a6f8797007e768488568b821435cf5006517a962", default-features = false, optional = true }
@@ -37,7 +37,7 @@ hex = "0.4"
rand_core = { version = "0.6", features = ["std"] } rand_core = { version = "0.6", features = ["std"] }
ff-group-tests = { path = "../../ff-group-tests" } ff-group-tests = { path = "../ff-group-tests" }
[features] [features]
alloc = ["std-shims", "zeroize/alloc", "prime-field/alloc", "short-weierstrass/alloc", "curve25519-dalek/alloc", "ciphersuite/alloc", "generalized-bulletproofs-ec-gadgets"] alloc = ["std-shims", "zeroize/alloc", "prime-field/alloc", "short-weierstrass/alloc", "curve25519-dalek/alloc", "ciphersuite/alloc", "generalized-bulletproofs-ec-gadgets"]

View File

@@ -3,7 +3,7 @@ name = "secq256k1"
version = "0.1.0" version = "0.1.0"
description = "An implementation of the curve secp256k1 cycles with" description = "An implementation of the curve secp256k1 cycles with"
license = "MIT" license = "MIT"
repository = "https://github.com/serai-dex/serai/tree/develop/crypto/evrf/secq256k1" repository = "https://github.com/serai-dex/serai/tree/develop/crypto/secq256k1"
authors = ["Luke Parker <lukeparker5132@gmail.com>"] authors = ["Luke Parker <lukeparker5132@gmail.com>"]
keywords = ["secp256k1", "secq256k1", "group"] keywords = ["secp256k1", "secq256k1", "group"]
edition = "2021" edition = "2021"
@@ -16,15 +16,15 @@ rustdoc-args = ["--cfg", "docsrs"]
[dependencies] [dependencies]
hex-literal = { version = "0.4", default-features = false } hex-literal = { version = "0.4", default-features = false }
std-shims = { version = "0.1", path = "../../../common/std-shims", default-features = false, optional = true } std-shims = { version = "0.1", path = "../../common/std-shims", default-features = false, optional = true }
generic-array = { version = "1", default-features = false } generic-array = { version = "1", default-features = false }
k256 = { version = "0.13", default-features = false, features = ["arithmetic"] } k256 = { version = "0.13", default-features = false, features = ["arithmetic"] }
prime-field = { path = "../../prime-field", default-features = false } prime-field = { path = "../prime-field", default-features = false }
short-weierstrass = { path = "../../short-weierstrass", default-features = false } short-weierstrass = { path = "../short-weierstrass", default-features = false }
blake2 = { version = "0.10", default-features = false } blake2 = { version = "0.10", default-features = false }
ciphersuite = { path = "../../ciphersuite", version = "0.4", default-features = false } ciphersuite = { path = "../ciphersuite", version = "0.4", default-features = false }
generalized-bulletproofs-ec-gadgets = { git = "https://github.com/monero-oxide/monero-oxide", rev = "a6f8797007e768488568b821435cf5006517a962", default-features = false, optional = true } generalized-bulletproofs-ec-gadgets = { git = "https://github.com/monero-oxide/monero-oxide", rev = "a6f8797007e768488568b821435cf5006517a962", default-features = false, optional = true }
[dev-dependencies] [dev-dependencies]
@@ -32,7 +32,7 @@ hex = "0.4"
rand_core = { version = "0.6", features = ["std"] } rand_core = { version = "0.6", features = ["std"] }
ff-group-tests = { path = "../../ff-group-tests" } ff-group-tests = { path = "../ff-group-tests" }
[features] [features]
alloc = ["std-shims", "generic-array/alloc", "k256/alloc", "prime-field/alloc", "short-weierstrass/alloc", "ciphersuite/alloc", "generalized-bulletproofs-ec-gadgets"] alloc = ["std-shims", "generic-array/alloc", "k256/alloc", "prime-field/alloc", "short-weierstrass/alloc", "ciphersuite/alloc", "generalized-bulletproofs-ec-gadgets"]

View File

@@ -25,8 +25,8 @@ rand_chacha = { version = "0.3", default-features = false, features = ["std"] }
transcript = { package = "flexible-transcript", path = "../crypto/transcript", default-features = false, features = ["std", "recommended"] } transcript = { package = "flexible-transcript", path = "../crypto/transcript", default-features = false, features = ["std", "recommended"] }
ciphersuite = { path = "../crypto/ciphersuite", default-features = false, features = ["std"] } ciphersuite = { path = "../crypto/ciphersuite", default-features = false, features = ["std"] }
dalek-ff-group = { path = "../crypto/dalek-ff-group", default-features = false, features = ["std"] } dalek-ff-group = { path = "../crypto/dalek-ff-group", default-features = false, features = ["std"] }
embedwards25519 = { path = "../crypto/evrf/embedwards25519" } embedwards25519 = { path = "../crypto/embedwards25519" }
secq256k1 = { path = "../crypto/evrf/secq256k1" } secq256k1 = { path = "../crypto/secq256k1" }
zalloc = { path = "../common/zalloc" } zalloc = { path = "../common/zalloc" }

View File

@@ -29,8 +29,8 @@ schnorrkel = "0.11"
ciphersuite = { path = "../../crypto/ciphersuite" } ciphersuite = { path = "../../crypto/ciphersuite" }
ciphersuite-kp256 = { path = "../../crypto/ciphersuite/kp256" } ciphersuite-kp256 = { path = "../../crypto/ciphersuite/kp256" }
dalek-ff-group = { path = "../../crypto/dalek-ff-group" } dalek-ff-group = { path = "../../crypto/dalek-ff-group" }
embedwards25519 = { path = "../../crypto/evrf/embedwards25519" } embedwards25519 = { path = "../../crypto/embedwards25519" }
secq256k1 = { path = "../../crypto/evrf/secq256k1" } secq256k1 = { path = "../../crypto/secq256k1" }
libp2p = "0.52" libp2p = "0.52"

View File

@@ -27,8 +27,8 @@ blake2 = "0.10"
ciphersuite = { path = "../../crypto/ciphersuite", default-features = false, features = ["std"] } ciphersuite = { path = "../../crypto/ciphersuite", default-features = false, features = ["std"] }
ciphersuite-kp256 = { path = "../../crypto/ciphersuite/kp256", default-features = false, features = ["std"] } ciphersuite-kp256 = { path = "../../crypto/ciphersuite/kp256", default-features = false, features = ["std"] }
dalek-ff-group = { path = "../../crypto/dalek-ff-group", default-features = false, features = ["std"] } dalek-ff-group = { path = "../../crypto/dalek-ff-group", default-features = false, features = ["std"] }
embedwards25519 = { path = "../../crypto/evrf/embedwards25519" } embedwards25519 = { path = "../../crypto/embedwards25519" }
secq256k1 = { path = "../../crypto/evrf/secq256k1" } secq256k1 = { path = "../../crypto/secq256k1" }
schnorrkel = "0.11" schnorrkel = "0.11"
dkg = { path = "../../crypto/dkg", default-features = false, features = ["tests"] } dkg = { path = "../../crypto/dkg", default-features = false, features = ["tests"] }

View File

@@ -30,8 +30,8 @@ schnorr-signatures = { path = "../../crypto/schnorr", default-features = false }
prime-field = { path = "../../crypto/prime-field", default-features = false, features = ["alloc"] } prime-field = { path = "../../crypto/prime-field", default-features = false, features = ["alloc"] }
short-weierstrass = { path = "../../crypto/short-weierstrass", default-features = false, features = ["alloc"] } short-weierstrass = { path = "../../crypto/short-weierstrass", default-features = false, features = ["alloc"] }
secq256k1 = { path = "../../crypto/evrf/secq256k1", default-features = false } secq256k1 = { path = "../../crypto/secq256k1", default-features = false }
embedwards25519 = { path = "../../crypto/evrf/embedwards25519", default-features = false } embedwards25519 = { path = "../../crypto/embedwards25519", default-features = false }
dkg = { path = "../../crypto/dkg", default-features = false } dkg = { path = "../../crypto/dkg", default-features = false }
dkg-evrf = { path = "../../crypto/dkg/evrf", default-features = false } dkg-evrf = { path = "../../crypto/dkg/evrf", default-features = false }