o
    ¢ØÆhó  ã                   @   s4   d dl mZ dedefdd„Zdedefdd„ZdS )	é    )ÚSECPK1_NÚvalueÚreturnc                 C   s
   t | gƒS )N)Úbytes©r   © r   úc/var/www/html/HyperOracle/crypto_trader/venv/lib/python3.10/site-packages/eth_keys/utils/numeric.pyÚint_to_byte   s   
r	   c                 C   s   t | |  t ƒS )a  
    Coerce the s component of an ECDSA signature into its low-s form.

    See https://bitcoin.stackexchange.com/questions/83408/in-ecdsa-why-is-r-%E2%88%92s-mod-n-complementary-to-r-s  # noqa: E501
    or https://github.com/ethereum/EIPs/blob/master/EIPS/eip-2.md.
    )Úminr   r   r   r   r   Úcoerce_low_s
   s   r   N)Úeth_keys.constantsr   Úintr   r	   r   r   r   r   r   Ú<module>   s    