question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

CLI commands encrypt and decrypt not working

See original GitHub issue

I tried to use command line electron-cash -w wallet_file decrypt $pk $message But I get errors from command:

Traceback (most recent call last): File “/usr/bin/electron-cash”, line 424, in <module> result = server.run_cmdline(config_options) File “/usr/lib/python3.7/site-packages/jsonrpclib/jsonrpc.py”, line 748, in call return self.__send(self.__name, args) File “/usr/lib/python3.7/site-packages/jsonrpclib/jsonrpc.py”, line 629, in _request response = self._run_request(request) File “/usr/lib/python3.7/site-packages/jsonrpclib/jsonrpc.py”, line 662, in _run_request verbose=self.__verbose File “/usr/lib/python3.7/xmlrpc/client.py”, line 1154, in request return self.single_request(host, handler, request_body, verbose) File “/usr/lib/python3.7/site-packages/jsonrpclib/jsonrpc.py”, line 391, in single_request response.msg) jsonrpclib.jsonrpc.ProtocolError: (‘user:OgomifkaKgyxSikT06QsQw==@127.0.0.1:46227/’, 500, 'Internal Server

and from daemon:

Traceback (most recent call last): File “/usr/lib/python3.7/site-packages/jsonrpclib/SimpleJSONRPCServer.py”, line 460, in do_POST data, getattr(self, ‘_dispatch’, None), self.path) File “/usr/lib/python3.7/site-packages/jsonrpclib/SimpleJSONRPCServer.py”, line 280, in _marshaled_dispatch return jsonrpclib.jdumps(response, self.encoding) File “/usr/lib/python3.7/site-packages/jsonrpclib/jsonrpc.py”, line 164, in jdumps return json.dumps(obj) File “/usr/lib/python3.7/json/init.py”, line 231, in dumps return _default_encoder.encode(obj) File “/usr/lib/python3.7/json/encoder.py”, line 199, in encode chunks = self.iterencode(o, _one_shot=True) File “/usr/lib/python3.7/json/encoder.py”, line 257, in iterencode return _iterencode(o, 0) File “/usr/lib/python3.7/json/encoder.py”, line 179, in default raise TypeError(f’Object of type {o.class.name} ’ TypeError: Object of type bytes is not JSON serializable

though it works in electrum.

Imaginary_username said no other commands are affected, only encrypt and decrypt.

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:6

github_iconTop GitHub Comments

1reaction
KarolTrzeszczkowskicommented, Apr 8, 2019

Works like charm 😃

1reaction
KarolTrzeszczkowskicommented, Apr 8, 2019

Sure, but I’m not near my pc right now, I’ll be there in few hours 😕 Thanks for the fix, I’ll test it when I’ll be back home.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Openssl decryption not working - Stack Overflow
I am able to encrypt the text but I am not able to decrypt it back. Here is how I am encrypting my...
Read more >
AWS Encryption SDK CLI syntax and parameter reference
This topic provides syntax diagrams and brief parameter descriptions to help you use the AWS Encryption SDK Command Line Interface (CLI).
Read more >
05 - How to Encrypt/Decrypt Data with Encryption CLI | Key Alias
Checkout Our Courses =========DevOps Course ▻ https://bit.ly/3d7QIi7Linux for DevOps ▻ ht...
Read more >
CLI wrapper around aws-encryption-sdk-python - GitHub
This command line tool can be used to encrypt and decrypt files and directories using the AWS Encryption SDK. The latest full documentation...
Read more >
How to Use the Windows Command Prompt to Encrypt Files
Encryption ensures that no unauthorized parties can access data that is not intended for them and is a fantastic option for protecting secure ......
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found