From d4e8fe5ddec17b25cf568d0c65662414a3624b76 Mon Sep 17 00:00:00 2001 From: Sharlatan Hellseher Date: Sun, 10 May 2026 21:39:27 +0100 Subject: gnu: Add python-shamir-mnemonic. * gnu/packages/python-crypto.scm (python-shamir-mnemonic): New variable. Change-Id: I1bfa75fb1c4e4deeb19e10bbe1a38b55fcff9926 --- gnu/packages/python-crypto.scm | 32 ++++++++++++++++++++++++++++++++ 1 file changed, 32 insertions(+) (limited to 'gnu/packages/python-crypto.scm') diff --git a/gnu/packages/python-crypto.scm b/gnu/packages/python-crypto.scm index 558c7e79a3a..be0a56a9346 100644 --- a/gnu/packages/python-crypto.scm +++ b/gnu/packages/python-crypto.scm @@ -1494,6 +1494,38 @@ implements RFC 6125 fully and plans to add other relevant RFCs too.") of the CRC32C hashing algorithm.") (license license:asl2.0))) +(define-public python-shamir-mnemonic + (package + (name "python-shamir-mnemonic") + (version "0.3.0") + (source + (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/trezor/python-shamir-mnemonic") + (commit (string-append "v" version)))) + (file-name (git-file-name name version)) + (sha256 + (base32 "0nzg1l9hrjgrw8jnji8jjl6yy8wixxipcbdjhmh6x1vn1z25ndia")))) + (build-system pyproject-build-system) + (native-inputs + (list python-bip32utils + python-poetry-core + python-pytest)) + (propagated-inputs + (list python-click)) + (home-page "https://github.com/trezor/python-shamir-mnemonic") + (synopsis "SLIP-39 Shamir Mnemonics") + (description + "This package provides a reference implementation of SLIP-0039: Shamir's +Secret-Sharing for Mnemonic Codes. This SLIP describes a standard and +interoperable implementation of Shamir's secret sharing (SSS). SSS splits a +secret into unique parts which can be distributed among participants, and +requires a specified minimum number of parts to be supplied in order to +reconstruct the original secret. Knowledge of fewer than the required number +of parts does not leak information about the secret.") + (license license:expat))) + (define-public python-spake2 (package (name "python-spake2") -- cgit v1.2.3