jkczyz
commented at 0:13 am on November 22, 2019:
contributor
The code used to produce a message hash when signing and verifying
messages was repeated in a few locations. Additionally, the “magic” text
used to prefix the message before hashing is unrelated to validation.
Create a utility function for this code rather than spreading it across
multiple files.
The code used to produce a message hash when signing and verifying
messages was repeated in a few locations. Additionally, the "magic" text
used to prefix the message before hashing is unrelated to validation.
Create a utility function for this code rather than spreading it across
multiple files.
ec9b0aad35
Add a unit test for HashMessage
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.
07531c35d6
fanquake added the label
Refactoring
on Nov 22, 2019
fanquake added the label
Utils/log/libs
on Nov 22, 2019
DrahtBot
commented at 0:41 am on November 22, 2019:
member
The following sections might be updated with supplementary metadata relevant to reviewers and maintainers.
Conflicts
Reviewers, this pull request conflicts with the following ones:
#17624 (net: Fix an uninitialized read in ProcessMessage(…, “tx”, …) when receiving a transaction we already have by practicalswift)
#17577 (refactor: deduplicate the message sign/verify code by vasild)
#17485 (net processing: Don’t reach into CBlockIndex to check for block mutation by jnewbery)
#17479 (Return BlockValidationState from ProcessNewBlock if CheckBlock/AcceptBlock fails by jnewbery)
#16702 (p2p: supplying and using asmap to improve IP bucketing in addrman by naumenkogs)
#16688 (log: Add validation interface logging by jkczyz)
#16658 (validation: Rename CheckInputs to CheckInputScripts by jnewbery)
If you consider this pull request important, please also help to review the conflicting pull requests. Ideally, start with the one that should be merged first.
jkczyz
commented at 6:10 pm on February 28, 2020:
contributor
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: 2024-11-17 12:12 UTC
This site is hosted by @0xB10C More mirrored repositories can be found on mirror.b10c.me