Electrum addrequest导致语法错误

时间:2019-10-04 10:30:43

标签: python-3.6 wallet

我已经按照网站上的电子材料文档接受了比特币,最后,当我尝试使用给定命令“电子材料添加请求3.14 -m“这是测试””添加请求时,它引发了这个错误

File "/usr/local/bin/electrum", line 426, in <module> result = run_offline_command(config, config_options, plugins) File "/usr/local/bin/electrum", line 259, in run_offline_command result = func(*args, **kwargs) File "/root/.local/lib/python3.6/site-packages/electrum/commands.py", line 96, in func_wrapper return func(*args, **kwargs) File "/root/.local/lib/python3.6/site-packages/electrum/commands.py", line 668, in addrequest self.wallet.add_payment_request(req, self.config) File "/root/.local/lib/python3.6/site-packages/electrum/wallet.py", line 1272, in add_payment_request pr = paymentrequest.make_request(config, req) File "/root/.local/lib/python3.6/site-packages/electrum/paymentrequest.py", line 479, in make_request sign_request_with_x509(pr, key_path, cert_path) File "/root/.local/lib/python3.6/site-packages/electrum/paymentrequest.py", line 448, in sign_request_with_x509 params = pem.parse_private_key(f.read()) File "/root/.local/lib/python3.6/site-packages/electrum/pem.py", line 141, in parse_private_key bytes = dePem(s, "PRIVATE KEY") File "/root/.local/lib/python3.6/site-packages/electrum/pem.py", line 71, in dePem retBytes = a2b_base64(s) # May raise SyntaxError File "/root/.local/lib/python3.6/site-packages/electrum/pem.py", line 40, in a2b_base64 raise SyntaxError("base64 error: %s" % e) SyntaxError: base64 error: Incorrect padding

0 个答案:

没有答案