gnu: libsecp256k1: Update to 0.3.2.

* gnu/packages/crypto.scm (libsecp256k1): Update to 0.3.2.
  [arguments]: Update 'configure-flags'.
  [description]: Add new items.
  [license]: Switch to expat.
This commit is contained in:
Guillaume Le Vaillant 2023-06-19 09:45:47 +02:00
parent dc90c0807d
commit 93ba5f77ad
No known key found for this signature in database
GPG key ID: 6BE8208ADF21FE3F

View file

@ -1099,48 +1099,49 @@ (define-public enchive
(license license:unlicense))) (license license:unlicense)))
(define-public libsecp256k1 (define-public libsecp256k1
(let ((commit "dbd41db16a0e91b2566820898a3ab2d7dad4fe00")) (package
(package (name "libsecp256k1")
(name "libsecp256k1") (version "0.3.2")
(version (git-version "20200615" "1" commit)) (source (origin
(source (origin (method git-fetch)
(method git-fetch) (uri (git-reference
(uri (git-reference (url "https://github.com/bitcoin-core/secp256k1")
(url "https://github.com/bitcoin-core/secp256k1") (commit (string-append "v" version))))
(commit commit))) (sha256
(sha256 (base32
(base32 "12wksk7bi3yfzmk1zwh5b6846zcaycqz1w4w4p23apjc8da4jwpn"))))
"1fcpnksq5cqwqzshn5f0lq94b73p3frwbp04hgmmbnrndpqg6mpy")) (build-system gnu-build-system)
(file-name (git-file-name name version)))) (arguments
(build-system gnu-build-system) '(#:configure-flags '("--enable-module-recovery"
(arguments "--enable-experimental"
'(#:configure-flags '("--enable-module-recovery" "--enable-module-ecdh"
"--enable-experimental" "--enable-module-schnorrsig"
"--enable-module-ecdh" "--enable-shared"
"--enable-shared"))) "--disable-static"
(native-inputs "--disable-benchmark")))
(list autoconf automake libtool)) (native-inputs
;; WARNING: This package might need additional configure flags to run properly. (list autoconf automake libtool))
;; See https://github.com/archlinux/svntogit-community/blob/packages/libsecp256k1/trunk/PKGBUILD. (synopsis "C library for EC operations on curve secp256k1")
(synopsis "C library for EC operations on curve secp256k1") (description
(description "Optimized C library for EC operations on curve secp256k1.
"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: Features:
@itemize @itemize
@item secp256k1 ECDSA signing/verification and key generation. @item secp256k1 ECDSA signing/verification and key generation.
@item Adding/multiplying private/public keys. @item Additive and multiplicative tweaking of secret/public keys.
@item Serialization/parsing of private keys, public keys, signatures. @item Serialization/parsing of private keys, public keys, signatures.
@item Constant time, constant memory access signing and pubkey generation. @item Constant time, constant memory access signing and public key generation.
@item Derandomized DSA (via RFC6979 or with a caller provided function.) @item Derandomized ECDSA (via RFC6979 or with a caller provided function.)
@item Very efficient implementation. @item Very efficient implementation.
@item Suitable for embedded systems.
@item No runtime dependencies.
@item Optional module for public key recovery.
@item Optional module for ECDH key exchange.
@item Optional module for Schnorr signatures according to BIP-340.
@end itemize\n") @end itemize\n")
(home-page "https://github.com/bitcoin-core/secp256k1") (home-page "https://github.com/bitcoin-core/secp256k1")
(license license:unlicense)))) (license license:expat)))
(define-public libsecp256k1-bitcoin-cash (define-public libsecp256k1-bitcoin-cash
(package (package