Metadata-Version: 1.0
Name: shamirs
Version: 0.1.0.0
Summary: Python library with a minimal native implementation of Shamir's Secret Sharing algorithm.
Home-page: https://github.com/lapets/lagrange
Author: Andrei Lapets
Author-email: a@lapets.io
License: MIT
Description: =======
        shamirs
        =======
        
        Python library with a minimal native implementation of Shamir's Secret Sharing algorithm.
        
        .. image:: https://badge.fury.io/py/shamirs.svg
           :target: https://badge.fury.io/py/shamirs
           :alt: PyPI version and link.
        
        Purpose
        -------
        The library provides functions for computing secret shares given an integer input value, as well as for reassembling an integer from its corresponding shares using Lagrange interpolation over finite fields. The native python :code:`random.randint` function is used to generate the polynomial when creating shares.
        
        Package Installation and Usage
        ------------------------------
        The package is available on PyPI::
        
            python -m pip install shamirs
        
        The library can be imported in the usual way::
        
            import shamirs
        
        Examples
        --------
        The library provides functions for splitting a value into a number of shares across a number of parties, and for reassembling those share back into the value they represent::
        
            >>> shares = shamirs.share(5, 3, 17)
            >>> shamirs.build(shares, 17)
            5
            >>> shamirs.build(shamirs.share(123, 12, 15485867), 15485867)
            123
        
Platform: UNKNOWN
