python-psi
python-psi copied to clipboard
ECC key format is not supported
运行报错,“ValueError: ECC key format is not supported”。 安装了pycryptodome的3.10.1,3.10.4,3.17版本,都报相同的错误。
(base) deepl@ht-PowerEdge-R740:~/explore/python-psi$ PSI_CONFIG=./config/server.config.yaml psi_run server 127.0.0.1:1234
2023-05-31 13:15:13.443 - INFO: start prepare
Traceback (most recent call last):
File "/home/haitaiwork/deepl/anaconda3/bin/psi_run", line 8, in
这个应该不是pycryptodome的问题,问题应该出在socket的数据传输上。
我本地没法复现这个问题,如果你可以复现的话,可以在psi/base/sender.py的第17行插入一行代码
print(f"key {bk_bytes.hex()}")
观察程序的输出。
正常的key应该是以30开头的,长度为59的bytes(hex长度为118)。
如果不是,说明是socket数据传输的问题。
修改了代码之后,你需要pip install -e .
来重新安装一下才能让修改的代码生效。