summaryrefslogtreecommitdiff
path: root/gnu/packages/crates-io.scm
diff options
context:
space:
mode:
authorHerman Rimm <herman@rimm.ee>2024-02-18 22:08:53 +0100
committerEfraim Flashner <efraim@flashner.co.il>2024-07-19 00:43:31 +0300
commit0054198e835b15f3923a7bb3fdaac218846cba39 (patch)
treeca3f8ef47f0c3197776dbdc612b13c0f465c3425 /gnu/packages/crates-io.scm
parentfbff88da7f6178a11ccd5f08c0c0927480255f2d (diff)
gnu: Add rust-merlin-3.
* gnu/packages/crates-io.scm (rust-merlin-3): Add variable. (rust-merlin-2): Inherit from rust-merlin-3. Change-Id: Ic54984d4fdd484164f2ed33b8a981f439cf328fe Signed-off-by: Efraim Flashner <efraim@flashner.co.il>
Diffstat (limited to 'gnu/packages/crates-io.scm')
-rw-r--r--gnu/packages/crates-io.scm42
1 files changed, 33 insertions, 9 deletions
diff --git a/gnu/packages/crates-io.scm b/gnu/packages/crates-io.scm
index 17b792727a..310fcd5687 100644
--- a/gnu/packages/crates-io.scm
+++ b/gnu/packages/crates-io.scm
@@ -39716,8 +39716,40 @@ for Rust structs.")
to merge two objects of the same type into one.")
(license (list license:asl2.0 license:expat))))
+(define-public rust-merlin-3
+ (package
+ (name "rust-merlin")
+ (version "3.0.0")
+ (source
+ (origin
+ (method url-fetch)
+ (uri (crate-uri "merlin" version))
+ (file-name (string-append name "-" version ".tar.gz"))
+ (sha256
+ (base32 "0z9rh9jlpcs0i0cijbs6pcq26gl4qwz05y7zbnv7h2gwk4kqxhsq"))))
+ (build-system cargo-build-system)
+ (arguments
+ `(#:cargo-inputs (("rust-byteorder" ,rust-byteorder-1)
+ ("rust-hex" ,rust-hex-0.3)
+ ("rust-keccak" ,rust-keccak-0.1)
+ ("rust-rand-core" ,rust-rand-core-0.6)
+ ("rust-zeroize" ,rust-zeroize-1))
+ #:cargo-development-inputs
+ (("rust-curve25519-dalek-ng" ,rust-curve25519-dalek-ng-4)
+ ("rust-rand-chacha" ,rust-rand-chacha-0.3)
+ ("rust-strobe-rs" ,rust-strobe-rs-0.5))))
+ (home-page "https://docs.rs/merlin")
+ (synopsis
+ "Composable proof transcripts for public-coin arguments of knowledge")
+ (description
+ "Merlin is a STROBE-based transcript construction for zero-knowledge
+proofs. It automates the Fiat-Shamir transform, so that by using Merlin,
+non-interactive protocols can be implemented as if they were interactive.")
+ (license license:expat)))
+
(define-public rust-merlin-2
(package
+ (inherit rust-merlin-3)
(name "rust-merlin")
(version "2.0.0")
(source
@@ -39735,15 +39767,7 @@ to merge two objects of the same type into one.")
("rust-hex" ,rust-hex-0.3)
("rust-keccak" ,rust-keccak-0.1)
("rust-rand-core" ,rust-rand-core-0.5)
- ("rust-zeroize" ,rust-zeroize-1))))
- (home-page "https://docs.rs/merlin")
- (synopsis "Composable proof transcripts for public-coin arguments of
-knowledge")
- (description
- "Merlin is a STROBE-based transcript construction for zero-knowledge
-proofs. It automates the Fiat-Shamir transform, so that by using Merlin,
-non-interactive protocols can be implemented as if they were interactive.")
- (license license:expat)))
+ ("rust-zeroize" ,rust-zeroize-1))))))
(define-public rust-metrics-macros-0.2
(package