BECH32 address signmessage failed #16082

issue LongShao007 opened this issue on May 24, 2019
  1. LongShao007 commented at 11:54 AM on May 24, 2019: contributor

    I am testing test/functional/rpc_signmessage.py. test code:

        
        self.log.info('test signing with an address with wallet')
        address = self.nodes[0].getnewaddress("", "bech32")
        signature = self.nodes[0].signmessage(address, message)

    report error: Address does not refer to key (-3)

    stdout: 2019-05-24T11:48:36.964000Z TestFramework (INFO): Initializing test directory /var/folders/jd/c9npkg1x7t75h7v3ctbgnpbh0000gn/T/test_runner_₿🏃_20190524_194836/rpc_signmessage_0 2019-05-24T11:48:38.147000Z TestFramework (INFO): test signing with priv_key 2019-05-24T11:48:38.153000Z TestFramework (INFO): test signing with an address with wallet 2019-05-24T11:48:38.304000Z TestFramework (ERROR): JSONRPC error Traceback (most recent call last): File "/Users/longshao/layercoin/layercoin/test/functional/test_framework/test_framework.py", line 194, in main self.run_test() File "/Users/longshao/layercoin/layercoin/test/functional/rpc_signmessage.py", line 32, in run_test signature = self.nodes[0].signmessage(address, message) File "/Users/longshao/layercoin/layercoin/test/functional/test_framework/coverage.py", line 47, in call return_val = self.auth_service_proxy_instance.call(*args, **kwargs) File "/Users/longshao/layercoin/layercoin/test/functional/test_framework/authproxy.py", line 141, in call raise JSONRPCException(response['error'], status) test_framework.authproxy.JSONRPCException: Address does not refer to key (-3) 2019-05-24T11:48:38.364000Z TestFramework (INFO): Stopping nodes 2019-05-24T11:48:38.679000Z TestFramework (WARNING): Not cleaning up dir /var/folders/jd/c9npkg1x7t75h7v3ctbgnpbh0000gn/T/test_runner🏃_20190524_194836/rpc_signmessage_0 2019-05-24T11:48:38.679000Z TestFramework (ERROR): Test failed. Test logging available at /var/folders/jd/c9npkg1x7t75h7v3ctbgnpbh0000gn/T/test_runner🏃_20190524_194836/rpc_signmessage_0/test_framework.log 2019-05-24T11:48:38.680000Z TestFramework (ERROR): Hint: Call /Users/longshao/layercoin/layercoin/test/functional/combine_logs.py '/var/folders/jd/c9npkg1x7t75h7v3ctbgnpbh0000gn/T/test_runner₿_🏃_20190524_194836/rpc_signmessage_0' to consolidate all logs

  2. MarcoFalke commented at 12:11 PM on May 24, 2019: member

    How is this different from #10542

  3. LongShao007 closed this on May 24, 2019

  4. DrahtBot locked this on Dec 16, 2021

github-metadata-mirror

This is a metadata mirror of the GitHub repository bitcoin/bitcoin. This site is not affiliated with GitHub. Content is generated from a GitHub metadata backup.
generated: 2026-04-13 21:14 UTC

This site is hosted by @0xB10C
More mirrored repositories can be found on mirror.b10c.me