diff options
author | Pierre Neidhardt <mail@ambrevar.xyz> | 2019-01-09 21:12:29 +0100 |
---|---|---|
committer | Pierre Neidhardt <mail@ambrevar.xyz> | 2019-01-10 21:09:06 +0100 |
commit | 6fe6840dab54c10ce898cb37ffcc455e6c576465 (patch) | |
tree | ccbac6ac128a15602ccd8e5f64a52d783eaa3444 /gnu/packages | |
parent | 35ac66eec1bddbe5a2244b1964ec64d93227766c (diff) | |
download | patches-6fe6840dab54c10ce898cb37ffcc455e6c576465.tar patches-6fe6840dab54c10ce898cb37ffcc455e6c576465.tar.gz |
gnu: Add libsecp256k1.
* gnu/packages/crypto.scm (libsecp256k1): New variable.
Diffstat (limited to 'gnu/packages')
-rw-r--r-- | gnu/packages/crypto.scm | 41 |
1 files changed, 41 insertions, 0 deletions
diff --git a/gnu/packages/crypto.scm b/gnu/packages/crypto.scm index 082d6ecde1..84b00e0d8c 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: + +@itemize +@item secp256k1 ECDSA signing/verification and key generation. +@item Adding/multiplying private/public keys. +@item Serialization/parsing of private keys, public keys, signatures. +@item Constant time, constant memory access signing and pubkey generation. +@item Derandomized DSA (via RFC6979 or with a caller provided function.) +@item Very efficient implementation. +@end itemize\n") + (home-page "https://github.com/bitcoin-core/secp256k1") + (license license:unlicense)))) |