guix-commits
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

02/03: gnu: Add libsecp256k1.


From: guix-commits
Subject: 02/03: gnu: Add libsecp256k1.
Date: Thu, 10 Jan 2019 15:10:59 -0500 (EST)

ambrevar pushed a commit to branch master
in repository guix.

commit 6fe6840dab54c10ce898cb37ffcc455e6c576465
Author: Pierre Neidhardt <address@hidden>
Date:   Wed Jan 9 21:12:29 2019 +0100

    gnu: Add libsecp256k1.
    
    * gnu/packages/crypto.scm (libsecp256k1): New variable.
---
 gnu/packages/crypto.scm | 41 +++++++++++++++++++++++++++++++++++++++++
 1 file changed, 41 insertions(+)

diff --git a/gnu/packages/crypto.scm b/gnu/packages/crypto.scm
index 082d6ec..84b00e0 100644
--- a/gnu/packages/crypto.scm
+++ b/gnu/packages/crypto.scm
@@ -905,3 +905,44 @@ GnuPG or encrypted filesystems.  Enchive has no external 
dependencies and is
 trivial to build for local use.  Portability is emphasized over performance.")
     (home-page "https://github.com/skeeto/enchive";)
     (license license:unlicense)))
+
+(define-public libsecp256k1
+  (let ((commit "e34ceb333b1c0e6f4115ecbb80c632ac1042fa49"))
+    (package
+      (name "libsecp256k1")
+      (version (git-version "20181126" "1" commit))
+      (source (origin
+                (method git-fetch)
+                (uri (git-reference
+                      (url "https://github.com/bitcoin-core/secp256k1";)
+                      (commit commit)))
+                (sha256
+                 (base32
+                  "0as78s179hcr3ysk3fw98k5wzabgnwri7vkkc17wg31lyz6ids6c"))
+                (file-name (git-file-name name version))))
+      (build-system gnu-build-system)
+      (native-inputs
+       `(("autoconf" ,autoconf)
+         ("automake" ,automake)
+         ("libtool" ,libtool)))
+      ;; WARNING: This package might need additional configure flags to run 
properly.
+      ;; See 
https://git.archlinux.org/svntogit/community.git/tree/trunk/PKGBUILD?h=packages/libsecp256k1.
+      (synopsis "C library for EC operations on curve secp256k1")
+      (description
+       "Optimized C library for EC operations on curve secp256k1.
+
+This library is a work in progress and is being used to research best
+practices.  Use at your own risk.
+
+Features:
+
address@hidden
address@hidden secp256k1 ECDSA signing/verification and key generation.
address@hidden Adding/multiplying private/public keys.
address@hidden Serialization/parsing of private keys, public keys, signatures.
address@hidden Constant time, constant memory access signing and pubkey 
generation.
address@hidden Derandomized DSA (via RFC6979 or with a caller provided 
function.)
address@hidden Very efficient implementation.
address@hidden itemize\n")
+      (home-page "https://github.com/bitcoin-core/secp256k1";)
+      (license license:unlicense))))



reply via email to

[Prev in Thread] Current Thread [Next in Thread]