add pycryptodomex to requirements
This commit is contained in:
@@ -10,3 +10,4 @@ aiohttp>=3.3.0
|
|||||||
aiohttp_socks
|
aiohttp_socks
|
||||||
certifi
|
certifi
|
||||||
bitstring
|
bitstring
|
||||||
|
pycryptodomex>=3.7
|
||||||
|
|||||||
@@ -23,17 +23,11 @@
|
|||||||
# CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
# CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
||||||
# SOFTWARE.
|
# SOFTWARE.
|
||||||
|
|
||||||
import sys
|
|
||||||
import hashlib
|
import hashlib
|
||||||
from typing import Sequence, List, Tuple, NamedTuple, TYPE_CHECKING
|
from typing import Sequence, List, Tuple, NamedTuple, TYPE_CHECKING
|
||||||
from enum import IntEnum, IntFlag
|
from enum import IntEnum, IntFlag
|
||||||
|
from Cryptodome.Cipher import ChaCha20
|
||||||
|
|
||||||
try:
|
|
||||||
from Cryptodome.Cipher import ChaCha20
|
|
||||||
except Exception as e:
|
|
||||||
print(e)
|
|
||||||
print("Error: pycryptodomex >= 3.7 not available.")
|
|
||||||
sys.exit(1)
|
|
||||||
|
|
||||||
from . import ecc
|
from . import ecc
|
||||||
from .crypto import sha256, hmac_oneshot
|
from .crypto import sha256, hmac_oneshot
|
||||||
|
|||||||
@@ -5,16 +5,9 @@
|
|||||||
|
|
||||||
# Derived from https://gist.github.com/AdamISZ/046d05c156aaeb56cc897f85eecb3eb8
|
# Derived from https://gist.github.com/AdamISZ/046d05c156aaeb56cc897f85eecb3eb8
|
||||||
|
|
||||||
import sys
|
|
||||||
import hashlib
|
import hashlib
|
||||||
from asyncio import StreamReader, StreamWriter
|
from asyncio import StreamReader, StreamWriter
|
||||||
|
from Cryptodome.Cipher import ChaCha20_Poly1305
|
||||||
try:
|
|
||||||
from Cryptodome.Cipher import ChaCha20_Poly1305
|
|
||||||
except Exception as e:
|
|
||||||
print(e)
|
|
||||||
print("Error: pycryptodomex >= 3.7 not available.")
|
|
||||||
sys.exit(1)
|
|
||||||
|
|
||||||
from .crypto import sha256, hmac_oneshot
|
from .crypto import sha256, hmac_oneshot
|
||||||
from .lnutil import (get_ecdh, privkey_to_pubkey, LightningPeerConnectionClosed,
|
from .lnutil import (get_ecdh, privkey_to_pubkey, LightningPeerConnectionClosed,
|
||||||
|
|||||||
1
setup.py
1
setup.py
@@ -52,7 +52,6 @@ if platform.system() in ['Linux', 'FreeBSD', 'DragonFly']:
|
|||||||
|
|
||||||
extras_require = {
|
extras_require = {
|
||||||
'hardware': requirements_hw,
|
'hardware': requirements_hw,
|
||||||
'fast': ['pycryptodomex'],
|
|
||||||
'gui': ['pyqt5'],
|
'gui': ['pyqt5'],
|
||||||
}
|
}
|
||||||
extras_require['full'] = [pkg for sublist in list(extras_require.values()) for pkg in sublist]
|
extras_require['full'] = [pkg for sublist in list(extras_require.values()) for pkg in sublist]
|
||||||
|
|||||||
Reference in New Issue
Block a user