# This file was generated by Nuitka

# Stubs included by default
from __future__ import annotations
from typing import Any
from typing_extensions import Self
import asyncio
import ctypes
import numpy
import platform
import secrets

__name__ = 'Shamir´s Secret Sharing by serpent192 / Privy Services (port)'
malloc = libc.malloc
_loop = None
def as_run(coro: Any) -> Any:
    ...

class SharmirsShares:
    def __init__(self: Self) -> None: ...
    def add(self: Self, a: int, b: int) -> int: ...
    def multiply(self: Self, a: int, b: int) -> int: ...
    def div(self: Self, a: int, b: int) -> int: ...
    def interp_polynomial(self: Self, xsamp: np.ndarray, ysamp: np.ndarray, x: int) -> int: ...
    def evaluate(self: Self, coefficients: np.ndarray, x: int, degree: int) -> int: ...
    def newCoeff(self: Self, interception: int, degree: int) -> np.ndarray: ...
    def newCoords(self: Self) -> np.ndarray: ...
    @staticmethod
    def c_string(py_str: str) -> Any: ...
    @staticmethod
    def combine_wrapper(c_array: Any, length: Any) -> Any: ...
    @staticmethod
    def split_wrapper(c_array: Any, length: Any, shares_num: Any, threshold: Any) -> Any: ...

exports = {'combine_wrapper': SharmirsShares.combine_wrapper, 'split_wrapper': SharmirsShares.split_wrapper}

__name__ = ...



# Modules used internally, to allow implicit dependencies to be seen:
import os
import ntpath
import sys
import warnings
import numpy._core.False_
import numpy._core.ScalarType
import numpy._core.True_
import numpy._core.abs
import numpy._core.absolute
import numpy._core.acos
import numpy._core.acosh
import numpy._core.add
import numpy._core.all
import numpy._core.allclose
import numpy._core.amax
import numpy._core.amin
import numpy._core.any
import numpy._core.arange
import numpy._core.arccos
import numpy._core.arccosh
import numpy._core.arcsin
import numpy._core.arcsinh
import numpy._core.arctan
import numpy._core.arctan2
import numpy._core.arctanh
import numpy._core.argmax
import numpy._core.argmin
import numpy._core.argpartition
import numpy._core.argsort
import numpy._core.argwhere
import numpy._core.around
import numpy._core.array
import numpy._core.array2string
import numpy._core.array_equal
import numpy._core.array_equiv
import numpy._core.array_repr
import numpy._core.array_str
import numpy._core.asanyarray
import numpy._core.asarray
import numpy._core.ascontiguousarray
import numpy._core.asfortranarray
import numpy._core.asin
import numpy._core.asinh
import numpy._core.astype
import numpy._core.atan
import numpy._core.atan2
import numpy._core.atanh
import numpy._core.atleast_1d
import numpy._core.atleast_2d
import numpy._core.atleast_3d
import numpy._core.base_repr
import numpy._core.binary_repr
import numpy._core.bitwise_and
import numpy._core.bitwise_count
import numpy._core.bitwise_invert
import numpy._core.bitwise_left_shift
import numpy._core.bitwise_not
import numpy._core.bitwise_or
import numpy._core.bitwise_right_shift
import numpy._core.bitwise_xor
import numpy._core.block
import numpy._core.bool
import numpy._core.bool_
import numpy._core.broadcast
import numpy._core.busday_count
import numpy._core.busday_offset
import numpy._core.busdaycalendar
import numpy._core.byte
import numpy._core.bytes_
import numpy._core.can_cast
import numpy._core.cbrt
import numpy._core.cdouble
import numpy._core.ceil
import numpy._core.character
import numpy._core.choose
import numpy._core.clip
import numpy._core.clongdouble
import numpy._core.complex64
import numpy._core.complex128
import numpy._core.complexfloating
import numpy._core.compress
import numpy._core.concat
import numpy._core.concatenate
import numpy._core.conj
import numpy._core.conjugate
import numpy._core.convolve
import numpy._core.copysign
import numpy._core.copyto
import numpy._core.correlate
import numpy._core.cos
import numpy._core.cosh
import numpy._core.count_nonzero
import numpy._core.cross
import numpy._core.csingle
import numpy._core.cumprod
import numpy._core.cumsum
import numpy._core.cumulative_prod
import numpy._core.cumulative_sum
import numpy._core.datetime64
import numpy._core.datetime_as_string
import numpy._core.datetime_data
import numpy._core.deg2rad
import numpy._core.degrees
import numpy._core.diagonal
import numpy._core.divide
import numpy._core.divmod
import numpy._core.dot
import numpy._core.double
import numpy._core.dtype
import numpy._core.e
import numpy._core.einsum
import numpy._core.einsum_path
import numpy._core.empty
import numpy._core.empty_like
import numpy._core.equal
import numpy._core.errstate
import numpy._core.euler_gamma
import numpy._core.exp
import numpy._core.exp2
import numpy._core.expm1
import numpy._core.fabs
import numpy._core.finfo
import numpy._core.flatiter
import numpy._core.flatnonzero
import numpy._core.flexible
import numpy._core.float16
import numpy._core.float32
import numpy._core.float64
import numpy._core.float_power
import numpy._core.floating
import numpy._core.floor
import numpy._core.floor_divide
import numpy._core.fmax
import numpy._core.fmin
import numpy._core.fmod
import numpy._core.format_float_positional
import numpy._core.format_float_scientific
import numpy._core.frexp
import numpy._core.from_dlpack
import numpy._core.frombuffer
import numpy._core.fromfile
import numpy._core.fromfunction
import numpy._core.fromiter
import numpy._core.frompyfunc
import numpy._core.fromstring
import numpy._core.full
import numpy._core.full_like
import numpy._core.gcd
import numpy._core.generic
import numpy._core.geomspace
import numpy._core.get_printoptions
import numpy._core.getbufsize
import numpy._core.geterr
import numpy._core.geterrcall
import numpy._core.greater
import numpy._core.greater_equal
import numpy._core.half
import numpy._core.heaviside
import numpy._core.hstack
import numpy._core.hypot
import numpy._core.identity
import numpy._core.iinfo
import numpy._core.indices
import numpy._core.inexact
import numpy._core.inf
import numpy._core.inner
import numpy._core.int8
import numpy._core.int16
import numpy._core.int32
import numpy._core.int64
import numpy._core.int_
import numpy._core.intc
import numpy._core.integer
import numpy._core.intp
import numpy._core.invert
import numpy._core.is_busday
import numpy._core.isclose
import numpy._core.isdtype
import numpy._core.isfinite
import numpy._core.isfortran
import numpy._core.isinf
import numpy._core.isnan
import numpy._core.isnat
import numpy._core.isscalar
import numpy._core.issubdtype
import numpy._core.lcm
import numpy._core.ldexp
import numpy._core.left_shift
import numpy._core.less
import numpy._core.less_equal
import numpy._core.lexsort
import numpy._core.linspace
import numpy._core.little_endian
import numpy._core.log
import numpy._core.log1p
import numpy._core.log2
import numpy._core.log10
import numpy._core.logaddexp
import numpy._core.logaddexp2
import numpy._core.logical_and
import numpy._core.logical_not
import numpy._core.logical_or
import numpy._core.logical_xor
import numpy._core.logspace
import numpy._core.long
import numpy._core.longdouble
import numpy._core.longlong
import numpy._core.matmul
import numpy._core.matrix_transpose
import numpy._core.matvec
import numpy._core.max
import numpy._core.maximum
import numpy._core.may_share_memory
import numpy._core.mean
import numpy._core.min
import numpy._core.min_scalar_type
import numpy._core.minimum
import numpy._core.mod
import numpy._core.modf
import numpy._core.moveaxis
import numpy._core.multiply
import numpy._core.nan
import numpy._core.ndarray
import numpy._core.ndim
import numpy._core.nditer
import numpy._core.negative
import numpy._core.nested_iters
import numpy._core.newaxis
import numpy._core.nextafter
import numpy._core.nonzero
import numpy._core.not_equal
import numpy._core.number
import numpy._core.object_
import numpy._core.ones
import numpy._core.ones_like
import numpy._core.outer
import numpy._core.partition
import numpy._core.permute_dims
import numpy._core.pi
import numpy._core.positive
import numpy._core.pow
import numpy._core.power
import numpy._core.prod
import numpy._core.promote_types
import numpy._core.ptp
import numpy._core.put
import numpy._core.putmask
import numpy._core.rad2deg
import numpy._core.radians
import numpy._core.ravel
import numpy._core.recarray
import numpy._core.reciprocal
import numpy._core.record
import numpy._core.remainder
import numpy._core.repeat
import numpy._core.require
import numpy._core.reshape
import numpy._core.resize
import numpy._core.result_type
import numpy._core.right_shift
import numpy._core.rint
import numpy._core.roll
import numpy._core.rollaxis
import numpy._core.round
import numpy._core.sctypeDict
import numpy._core.searchsorted
import numpy._core.set_printoptions
import numpy._core.setbufsize
import numpy._core.seterr
import numpy._core.seterrcall
import numpy._core.shape
import numpy._core.shares_memory
import numpy._core.short
import numpy._core.sign
import numpy._core.signbit
import numpy._core.signedinteger
import numpy._core.sin
import numpy._core.single
import numpy._core.sinh
import numpy._core.size
import numpy._core.sort
import numpy._core.spacing
import numpy._core.sqrt
import numpy._core.square
import numpy._core.squeeze
import numpy._core.stack
import numpy._core.std
import numpy._core.str_
import numpy._core.subtract
import numpy._core.sum
import numpy._core.swapaxes
import numpy._core.take
import numpy._core.tan
import numpy._core.tanh
import numpy._core.tensordot
import numpy._core.timedelta64
import numpy._core.trace
import numpy._core.transpose
import numpy._core.true_divide
import numpy._core.trunc
import numpy._core.typecodes
import numpy._core.ubyte
import numpy._core.ufunc
import numpy._core.uint
import numpy._core.uint8
import numpy._core.uint16
import numpy._core.uint32
import numpy._core.uint64
import numpy._core.uintc
import numpy._core.uintp
import numpy._core.ulong
import numpy._core.ulonglong
import numpy._core.unsignedinteger
import numpy._core.unstack
import numpy._core.ushort
import numpy._core.var
import numpy._core.vdot
import numpy._core.vecdot
import numpy._core.vecmat
import numpy._core.void
import numpy._core.vstack
import numpy._core.where
import numpy._core.zeros
import numpy._core.zeros_like
import numpy.matrixlib.asmatrix
import numpy.matrixlib.bmat
import numpy.matrixlib.matrix
import numpy.distutils
import pathlib
import enum
import numpy._core._multiarray_umath
import yaml
import json
import argparse
import copyreg
import textwrap
import ctypes
import _ctypes
import ast
import math
import re
import numpy._NoValue
import inspect
import pickle
import contextlib
import functools
import numpy._utils.set_module
import numbers
import _thread
import _dummy_thread
import operator
import code_generators
import code_generators.genapi
import code_generators.numpy_api
import numpy.strings.multiply
import numpy.strings.partition
import numpy.strings.rpartition
import itertools
import types
import _frozen_importlib_external
import mmap
import builtins
import numpy.eye
import collections
import contextvars
import collections.Counter
import numpy.add
import numpy.equal
import numpy.greater
import numpy.greater_equal
import numpy.less
import numpy.less_equal
import numpy.multiply
import numpy.not_equal
import locale
import pytest
import distutils
import distutils.core
import Cython
import Cython.Build
import setuptools
import setuptools.extension
import setuptools.Extension
import setuptools.setup
import numpy.testing.assert_
import numpy._core._rational_tests
import numpy.testing.HAS_REFCOUNT
import numpy.testing.assert_array_equal
import numpy.testing.assert_equal
import numpy.testing.assert_raises
import threading
import numpy._core._multiarray_tests
import numpy.testing.IS_WASM
import numpy.testing.IS_64BIT
import numpy.testing.IS_PYPY
import sysconfig
import numpy.testing.IS_EDITABLE
import numpy.testing.extbuild
import array_interface_testing
import typing
import gc
import hypothesis
import hypothesis.extra
import numpy.testing.assert_raises_regex
import random
import numpy._core._umath_tests
import platform
import subprocess
import tempfile
import datetime
import cython
import Cython.Compiler
import Cython.Compiler.Version
import checks
import zoneinfo
import zoneinfo.ZoneInfo
import zoneinfo.ZoneInfoNotFoundError
import numpy._core._struct_ufunc_tests
import numpy.row_stack
import numpy.testing.IS_PYSTON
import numpy.testing.assert_allclose
import numpy.testing.assert_almost_equal
import traceback
import numpy.exp2
import numpy.log10
import numpy.arange
import numpy.array
import numpy.dtype
import numpy.errstate
import numpy.geomspace
import numpy.isnan
import numpy.linspace
import numpy.logspace
import numpy.ndarray
import numpy.nextafter
import numpy.sqrt
import numpy.stack
import numpy._core.sctypes
import numpy.double
import numpy.half
import numpy.longdouble
import numpy.single
import numpy.float16
import numpy.float32
import numpy.float64
import numpy.uint16
import numpy.testing.NOGIL_BUILD
import limited_api1
import limited_api2
import limited_api_latest
import numpy.testing.IS_MUSL
import numpy.testing.temppath
import asyncio
import mem_policy
import numpy.allclose
import numpy.asarray
import numpy.average
import numpy.isscalar
import numpy.memmap
import numpy.prod
import numpy.subtract
import numpy.sum
import numpy.testing.break_cycles
import collections.abc
import importlib
import io
import weakref
import decimal
import numpy.testing.BLAS_SUPPORTS_FPE
import numpy.testing.assert_array_almost_equal
import numpy.testing.assert_array_compare
import numpy.testing.assert_array_less
import numpy.testing.check_support_sve
import numpy.testing.runstring
import fractions
import _testbuffer
import time
import multiprocessing
import multiprocessing.shared_memory
import concurrent
import concurrent.futures
import concurrent.futures.ProcessPoolExecutor
import concurrent.futures.ThreadPoolExecutor
import numpy.all
import numpy.nditer
import numpy.random.rand
import numpy.random.randint
import numpy.random.randn
import numpy.testing.assert_array_max_ulp
import unittest
import unittest.mock
import copy
import numpy._utils.asbytes
import numpy._utils.asunicode
import numpy.testing._assert_valid_refcount
import hashlib
import hypothesis.strategies
import numpy.testing._gen_alignment_data
import numpy._core._simd
import string
import numpy._core._operand_flag_tests
import numpy.linalg._umath_linalg
import numpy.testing.assert_no_warnings
import fnmatch
import collections.namedtuple
import numpy.testing.assert_array_almost_equal_nulp
import cmath
import numpy._distributor_init_local
import PyInstaller
import PyInstaller.compat
import PyInstaller.utils
import PyInstaller.utils.hooks
import numpy._typing._96Bit
import numpy._typing._128Bit
import numpy.ufunc
import scipy_doctest
import scipy_doctest.conftest
import pytest_run_parallel
import doctest
import numpy.intp
import abc
import shutil
import numpy.distutils.core
import numpy.distutils.misc_util
import numpy.distutils.system_info
import errno
import pprint
import codecs
import fileinput
import charset_normalizer
import numpy_distutils
import numpy_distutils.command
import numpy_distutils.command.build_flib
import numpy.distutils.fcompiler
import numpy_distutils.fcompiler
import numpy.distutils.cpuinfo
import numpy_distutils.command.cpuinfo
import numpy_distutils.cpuinfo
import numpy.f2py._backends.f2py_build_generator
import shlex
import atexit
import glob
import numpy.fft._pocketfft_umath
import numpy.pi
import queue
import numpy.random.random
import bz2
import gzip
import lzma
import urllib
import urllib.parse
import urllib.request
import urllib.error
import struct
import tokenize
import zipfile
import numpy.ma.MaskedArray
import numpy.ma.make_mask_descr
import numpy.linalg.eigvals
import numpy.linalg.inv
import numpy.linalg.lstsq
import numpy.histogramdd
import threadpoolctl
import numpy.lib.NumpyVersion
import numpy.ediff1d
import numpy.intersect1d
import numpy.isin
import numpy.setdiff1d
import numpy.setxor1d
import numpy.union1d
import numpy.unique
import numpy.lib.Arrayterator
import hypothesis.extra.numpy
import numpy.angle
import numpy.bartlett
import numpy.blackman
import numpy.corrcoef
import numpy.cov
import numpy.delete
import numpy.diff
import numpy.digitize
import numpy.extract
import numpy.flipud
import numpy.gradient
import numpy.hamming
import numpy.hanning
import numpy.i0
import numpy.insert
import numpy.interp
import numpy.kaiser
import numpy.meshgrid
import numpy.piecewise
import numpy.place
import numpy.rot90
import numpy.select
import numpy.sinc
import numpy.trapezoid
import numpy.trim_zeros
import numpy.unwrap
import numpy.vectorize
import numpy.histogram
import numpy.histogram_bin_edges
import multiprocessing.Value
import multiprocessing.get_context
import numpy.testing.assert_no_gc_cycles
import numpy.testing.tempdir
import numpy.apply_along_axis
import numpy.apply_over_axes
import numpy.array_split
import numpy.column_stack
import numpy.dsplit
import numpy.dstack
import numpy.expand_dims
import numpy.hsplit
import numpy.kron
import numpy.put_along_axis
import numpy.split
import numpy.take_along_axis
import numpy.tile
import numpy.vsplit
import numpy.diag
import numpy.fliplr
import numpy.histogram2d
import numpy.mask_indices
import numpy.ones
import numpy.tri
import numpy.tril_indices
import numpy.tril_indices_from
import numpy.triu_indices
import numpy.triu_indices_from
import numpy.vander
import numpy.zeros
import numpy.common_type
import numpy.iscomplex
import numpy.iscomplexobj
import numpy.isneginf
import numpy.isposinf
import numpy.isreal
import numpy.isrealobj
import numpy.mintypecode
import numpy.nan_to_num
import numpy.real_if_close
import numpy.fix
import numpy._typing.NDArray
import numpy.atleast_2d
import numpy.cdouble
import numpy.csingle
import numpy.dot
import numpy.identity
import numpy.inf
import numpy.matmul
import numpy.linalg.LinAlgError
import numpy.linalg.matrix_power
import numpy.linalg.matrix_rank
import numpy.linalg.multi_dot
import numpy.linalg.norm
import numpy.testing.HAS_LAPACK64
import numpy.linalg.lapack_lite
import resource
import numpy.transpose
import numpy.amax
import numpy.amin
import numpy.bool_
import numpy.finfo
import numpy.iinfo
import numpy.ma.masked_array
import numpy.ma.masked
import numpy.ma.nomask
import numpy.ma.MaskType
import numpy.ma.absolute
import numpy.ma.add
import numpy.ma.all
import numpy.ma.allclose
import numpy.ma.allequal
import numpy.ma.alltrue
import numpy.ma.arange
import numpy.ma.arccos
import numpy.ma.arcsin
import numpy.ma.arctan
import numpy.ma.arctan2
import numpy.ma.array
import numpy.ma.average
import numpy.ma.choose
import numpy.ma.concatenate
import numpy.ma.conjugate
import numpy.ma.cos
import numpy.ma.cosh
import numpy.ma.count
import numpy.ma.divide
import numpy.ma.equal
import numpy.ma.exp
import numpy.ma.filled
import numpy.ma.getmask
import numpy.ma.greater
import numpy.ma.greater_equal
import numpy.ma.inner
import numpy.ma.isMaskedArray
import numpy.ma.less
import numpy.ma.less_equal
import numpy.ma.log
import numpy.ma.log10
import numpy.ma.make_mask
import numpy.ma.masked_equal
import numpy.ma.masked_greater
import numpy.ma.masked_greater_equal
import numpy.ma.masked_inside
import numpy.ma.masked_less
import numpy.ma.masked_less_equal
import numpy.ma.masked_not_equal
import numpy.ma.masked_outside
import numpy.ma.masked_print_option
import numpy.ma.masked_values
import numpy.ma.masked_where
import numpy.ma.maximum
import numpy.ma.minimum
import numpy.ma.multiply
import numpy.ma.nonzero
import numpy.ma.not_equal
import numpy.ma.ones
import numpy.ma.outer
import numpy.ma.product
import numpy.ma.put
import numpy.ma.ravel
import numpy.ma.repeat
import numpy.ma.resize
import numpy.ma.shape
import numpy.ma.sin
import numpy.ma.sinh
import numpy.ma.sometrue
import numpy.ma.sort
import numpy.ma.sqrt
import numpy.ma.subtract
import numpy.ma.sum
import numpy.ma.take
import numpy.ma.tan
import numpy.ma.tanh
import numpy.ma.transpose
import numpy.ma.where
import numpy.ma.zeros
import numpy.testing.build_err_msg
import numpy.linalg.pinv
import numpy.asmatrix
import numpy.bmat
import numpy.matrix
import numpy.polynomial.Chebyshev
import numpy.polynomial.Hermite
import numpy.polynomial.HermiteE
import numpy.polynomial.Laguerre
import numpy.polynomial.Legendre
import numpy.polynomial.Polynomial
import numpy.random._bounded_integers
import numpy.random._common
import numpy.random._generator
import numpy.random._mt19937
import numpy.random._pcg64
import numpy.random._philox
import numpy.random._sfc64
import numpy.random.bit_generator
import numpy.random.mtrand
import cffi
import timeit
import numba
import numpy.random.PCG64
import cffi.FFI
import numpy.random.MT19937
import numpy.random.PCG64DXSM
import numpy.random.SFC64
import numpy.random.Generator
import numpy.random.Philox
import numpy.random.RandomState
import numpy.random.SeedSequence
import numpy.random.default_rng
import importlib.util
import dataclasses
import importlib.metadata
import unittest.case
import numpy.isfinite
import win32pdh
import numpy.imag
import numpy.real
import difflib
import psutil
import numpy.testing.assert_approx_equal
import numpy.testing.assert_string_equal
import numpy.testing.assert_warns
import numpy.testing.clear_and_catch_warnings
import numpy.testing.suppress_warnings
import numpy.testing.IS_INSTALLED
import numpy.testing.NUMPY_ROOT
import numpy.ctypeslib.as_array
import numpy.ctypeslib.load_library
import numpy.ctypeslib.ndpointer
import pkgutil
import numpy._typing.ArrayLike
import numpy._typing.DTypeLike
import numpy._typing.NBitBase
import mypy
import mypy.types
import mypy.build
import mypy.nodes
import mypy.plugin
import __future__
import numpy._typing._Shape
import collections.defaultdict
import secrets