From 0d84e1275185579aab6b74deefd794b69fa30221 Mon Sep 17 00:00:00 2001 From: Efraim Flashner Date: Sun, 21 Jan 2024 17:32:18 +0200 Subject: [PATCH] gnu: rust-ed25519: Move to (gnu packages crates-crypto). * gnu/packages/crates-io.scm (rust-ed25519-1, rust-ed25519-compact-1, rust-ed25519-dalek-1): Move from here ... * gnu/packages/crates-crypto.scm: ... to here. Change-Id: I185f83666a5987ee1b3bd04a4d5a3bcd7dc96128 --- gnu/packages/crates-crypto.scm | 96 ++++++++++++++++++++++++++++++++++ gnu/packages/crates-io.scm | 96 ---------------------------------- 2 files changed, 96 insertions(+), 96 deletions(-) diff --git a/gnu/packages/crates-crypto.scm b/gnu/packages/crates-crypto.scm index 7ccabb643a..e3394770a2 100644 --- a/gnu/packages/crates-crypto.scm +++ b/gnu/packages/crates-crypto.scm @@ -1751,6 +1751,102 @@ (define-public rust-ecdsa-0.14 ("rust-hex-literal" ,rust-hex-literal-0.3) ("rust-sha2" ,rust-sha2-0.10)))))) +(define-public rust-ed25519-1 + (package + (name "rust-ed25519") + (version "1.5.3") + (source (origin + (method url-fetch) + (uri (crate-uri "ed25519" version)) + (file-name (string-append name "-" version ".tar.gz")) + (sha256 + (base32 + "1rzydm5wd8szkddx3g55w4vm86y1ika8qp8qwckada5vf1fg7kwi")))) + (build-system cargo-build-system) + (arguments + `(#:cargo-inputs + (("rust-pkcs8" ,rust-pkcs8-0.9) + ("rust-serde" ,rust-serde-1) + ("rust-serde-bytes" ,rust-serde-bytes-0.11) + ("rust-signature" ,rust-signature-1) + ("rust-zeroize" ,rust-zeroize-1)) + #:cargo-development-inputs + (("rust-bincode" ,rust-bincode-1) + ("rust-ed25519-dalek" ,rust-ed25519-dalek-1) + ("rust-hex-literal" ,rust-hex-literal-0.3) + ("rust-rand-core" ,rust-rand-core-0.5)))) + (home-page "https://github.com/RustCrypto/signatures/tree/master/ed25519") + (synopsis "Edwards Digital Signature Algorithm (EdDSA) over Curve25519") + (description + "EdDSA over Curve25519 is specified in RFC 8032. This package contains +an ed25519::Signature type which other packages can use in conjunction with +the signature::Signer and signature::Verifier traits It doesn't contain an +implementation of Ed25519. + +These traits allow packages which produce and consume Ed25519 signatures to be +written abstractly in such a way that different signer/verifier providers can +be plugged in, enabling support for using different Ed25519 implementations, +including HSMs or Cloud KMS services.") + (license (list license:asl2.0 license:expat)))) + +(define-public rust-ed25519-compact-2 + (package + (name "rust-ed25519-compact") + (version "2.0.4") + (source (origin + (method url-fetch) + (uri (crate-uri "ed25519-compact" version)) + (file-name (string-append name "-" version ".tar.gz")) + (sha256 + (base32 + "0k4y7bjl5g0l871iav4zj35qx047n0a4qsvhr28p6434hhp3hgba")))) + (build-system cargo-build-system) + (arguments + `(#:cargo-inputs + (("rust-ct-codecs" ,rust-ct-codecs-1) + ("rust-ed25519" ,rust-ed25519-1) + ("rust-getrandom" ,rust-getrandom-0.2)) + #:cargo-development-inputs + (("rust-ct-codecs" ,rust-ct-codecs-1) + ("rust-getrandom" ,rust-getrandom-0.2)))) + (home-page "https://github.com/jedisct1/rust-ed25519-compact") + (synopsis "Wasm-friendly Ed25519 implementation") + (description + "This package provides a small, self-contained, wasm-friendly Ed25519 +implementation.") + (license license:expat))) + +(define-public rust-ed25519-dalek-1 + (package + (name "rust-ed25519-dalek") + (version "1.0.1") + (source + (origin + (method url-fetch) + (uri (crate-uri "ed25519-dalek" version)) + (file-name (string-append name "-" version ".tar.gz")) + (sha256 + (base32 "17bsriciv93nkm39z22w7mr0h2a3hnbmgf378v4c895gvkkblqn7")))) + (build-system cargo-build-system) + (arguments + `(#:skip-build? #t + #:cargo-inputs + (("rust-curve25519-dalek" ,rust-curve25519-dalek-3) + ("rust-ed25519" ,rust-ed25519-1) + ("rust-merlin" ,rust-merlin-2) + ("rust-rand" ,rust-rand-0.7) + ("rust-rand-core" ,rust-rand-core-0.5) + ("rust-serde" ,rust-serde-1) + ("rust-serde-bytes" ,rust-serde-bytes-0.11) + ("rust-sha2" ,rust-sha2-0.9) + ("rust-zeroize" ,rust-zeroize-1)))) + (home-page "https://dalek.rs") + (synopsis "Ed25519 EdDSA key generations, signing, and verification") + (description + "This package provides fast and efficient ed25519 EdDSA key generations, +signing, and verification in pure Rust.") + (license license:bsd-3))) + (define-public rust-elliptic-curve-0.13 (package (name "rust-elliptic-curve") diff --git a/gnu/packages/crates-io.scm b/gnu/packages/crates-io.scm index 10808ca3ab..58e376c008 100644 --- a/gnu/packages/crates-io.scm +++ b/gnu/packages/crates-io.scm @@ -20862,102 +20862,6 @@ (define-public rust-ecies-ed25519-0.5 "ECIES on Twisted Edwards Curve25519 using AES-GCM and HKDF-SHA256.") (license (list license:expat license:asl2.0)))) -(define-public rust-ed25519-1 - (package - (name "rust-ed25519") - (version "1.5.3") - (source (origin - (method url-fetch) - (uri (crate-uri "ed25519" version)) - (file-name (string-append name "-" version ".tar.gz")) - (sha256 - (base32 - "1rzydm5wd8szkddx3g55w4vm86y1ika8qp8qwckada5vf1fg7kwi")))) - (build-system cargo-build-system) - (arguments - `(#:cargo-inputs - (("rust-pkcs8" ,rust-pkcs8-0.9) - ("rust-serde" ,rust-serde-1) - ("rust-serde-bytes" ,rust-serde-bytes-0.11) - ("rust-signature" ,rust-signature-1) - ("rust-zeroize" ,rust-zeroize-1)) - #:cargo-development-inputs - (("rust-bincode" ,rust-bincode-1) - ("rust-ed25519-dalek" ,rust-ed25519-dalek-1) - ("rust-hex-literal" ,rust-hex-literal-0.3) - ("rust-rand-core" ,rust-rand-core-0.5)))) - (home-page "https://github.com/RustCrypto/signatures/tree/master/ed25519") - (synopsis "Edwards Digital Signature Algorithm (EdDSA) over Curve25519") - (description - "EdDSA over Curve25519 is specified in RFC 8032. This package contains -an ed25519::Signature type which other packages can use in conjunction with -the signature::Signer and signature::Verifier traits It doesn't contain an -implementation of Ed25519. - -These traits allow packages which produce and consume Ed25519 signatures to be -written abstractly in such a way that different signer/verifier providers can -be plugged in, enabling support for using different Ed25519 implementations, -including HSMs or Cloud KMS services.") - (license (list license:asl2.0 license:expat)))) - -(define-public rust-ed25519-compact-2 - (package - (name "rust-ed25519-compact") - (version "2.0.4") - (source (origin - (method url-fetch) - (uri (crate-uri "ed25519-compact" version)) - (file-name (string-append name "-" version ".tar.gz")) - (sha256 - (base32 - "0k4y7bjl5g0l871iav4zj35qx047n0a4qsvhr28p6434hhp3hgba")))) - (build-system cargo-build-system) - (arguments - `(#:cargo-inputs - (("rust-ct-codecs" ,rust-ct-codecs-1) - ("rust-ed25519" ,rust-ed25519-1) - ("rust-getrandom" ,rust-getrandom-0.2)) - #:cargo-development-inputs - (("rust-ct-codecs" ,rust-ct-codecs-1) - ("rust-getrandom" ,rust-getrandom-0.2)))) - (home-page "https://github.com/jedisct1/rust-ed25519-compact") - (synopsis "Wasm-friendly Ed25519 implementation") - (description - "This package provides a small, self-contained, wasm-friendly Ed25519 -implementation.") - (license license:expat))) - -(define-public rust-ed25519-dalek-1 - (package - (name "rust-ed25519-dalek") - (version "1.0.1") - (source - (origin - (method url-fetch) - (uri (crate-uri "ed25519-dalek" version)) - (file-name (string-append name "-" version ".tar.gz")) - (sha256 - (base32 "17bsriciv93nkm39z22w7mr0h2a3hnbmgf378v4c895gvkkblqn7")))) - (build-system cargo-build-system) - (arguments - `(#:skip-build? #t - #:cargo-inputs - (("rust-curve25519-dalek" ,rust-curve25519-dalek-3) - ("rust-ed25519" ,rust-ed25519-1) - ("rust-merlin" ,rust-merlin-2) - ("rust-rand" ,rust-rand-0.7) - ("rust-rand-core" ,rust-rand-core-0.5) - ("rust-serde" ,rust-serde-1) - ("rust-serde-bytes" ,rust-serde-bytes-0.11) - ("rust-sha2" ,rust-sha2-0.9) - ("rust-zeroize" ,rust-zeroize-1)))) - (home-page "https://dalek.rs") - (synopsis "Ed25519 EdDSA key generations, signing, and verification") - (description - "This package provides fast and efficient ed25519 EdDSA key generations, -signing, and verification in pure Rust.") - (license license:bsd-3))) - (define-public rust-edit-distance-2 (package (name "rust-edit-distance")