elements/src/rpc
Samuel Dobson 03f98b15ad
Merge #17577: refactor: deduplicate the message sign/verify code
e193a84fb2 Refactor message hashing into a utility function (Jeffrey Czyz)
f8f0d9893d Deduplicate the message signing code (Vasil Dimov)
2ce3447eb1 Deduplicate the message verifying code (Vasil Dimov)

Pull request description:

  The message signing and verifying logic was replicated in a few places
  in the code. Consolidate in a newly introduced `MessageSign()` and
  `MessageVerify()` and add unit tests for them.

ACKs for top commit:
  Sjors:
    re-ACK e193a84fb2
  achow101:
    ACK e193a84fb2
  instagibbs:
    utACK https://github.com/bitcoin/bitcoin/pull/17577/commits/e193a84fb28068e38d5f54fbfd6208428c5bb655
  meshcollider:
    utACK e193a84fb2

Tree-SHA512: b0e02a7d4623a98c8f8c77627af1725e6df07700de4630c2f75da6beacdf55414c38ba147bc6d2a757491ab07c827dddf93e8632fe600478760e255714ddab88
2020-02-25 23:29:54 +13:00
..
blockchain.cpp scripted-diff: Add missing spaces in RPCResult, Fix type names 2020-02-09 05:12:43 -08:00
blockchain.h scripted-diff: Bump copyright of files changed in 2019 2019-12-30 10:42:20 +13:00
client.cpp [rpc] expose ability to mock scheduler via the rpc 2020-02-17 14:49:34 -08:00
client.h Update copyright headers to 2018 2018-07-27 07:15:02 -04:00
mining.cpp scripted-diff: Add missing spaces in RPCResult, Fix type names 2020-02-09 05:12:43 -08:00
misc.cpp Merge #17577: refactor: deduplicate the message sign/verify code 2020-02-25 23:29:54 +13:00
net.cpp scripted-diff: Add missing spaces in RPCResult, Fix type names 2020-02-09 05:12:43 -08:00
protocol.h scripted-diff: Bump copyright of files changed in 2019 2019-12-30 10:42:20 +13:00
rawtransaction.cpp scripted-diff: Add missing spaces in RPCResult, Fix type names 2020-02-09 05:12:43 -08:00
rawtransaction_util.cpp Accumulate result UniValue in SignTransaction 2019-11-18 15:28:15 -05:00
rawtransaction_util.h Fix doxygen errors 2020-01-16 18:25:11 -08:00
register.h Update copyright headers to 2018 2018-07-27 07:15:02 -04:00
request.cpp rpc: migrate JSONRPCRequest functionality into request.cpp 2019-07-05 11:22:02 +09:00
request.h rpc: migrate JSONRPCRequest functionality into request.cpp 2019-07-05 11:22:02 +09:00
server.cpp scripted-diff: Add missing spaces in RPCResult, Fix type names 2020-02-09 05:12:43 -08:00
server.h scripted-diff: Bump copyright of files changed in 2019 2019-12-30 10:42:20 +13:00
util.cpp rpc: update validateaddress RPCExamples to bech32 2020-02-13 12:57:37 +01:00
util.h rpc: update validateaddress RPCExamples to bech32 2020-02-13 12:57:37 +01:00