aboutsummaryrefslogtreecommitdiff
path: root/src/validationinterface.cpp
diff options
context:
space:
mode:
authorJeffrey Czyz <[email protected]>2019-12-07 20:52:38 +0100
committerVasil Dimov <[email protected]>2020-02-14 10:45:41 +0100
commite193a84fb28068e38d5f54fbfd6208428c5bb655 (patch)
tree3d9e920c26f874da2d9c06da07843d3fd15f4458 /src/validationinterface.cpp
parentDeduplicate the message signing code (diff)
downloaddiscoin-e193a84fb28068e38d5f54fbfd6208428c5bb655.tar.xz
discoin-e193a84fb28068e38d5f54fbfd6208428c5bb655.zip
Refactor message hashing into a utility function
And add unit test for it. The purpose of using a preamble or "magic" text as part of signing and verifying a message was not given when the code was repeated in a few locations. Make a test showing how it is used to prevent inadvertently signing a transaction.
Diffstat (limited to 'src/validationinterface.cpp')
0 files changed, 0 insertions, 0 deletions