[0.11] dbwrapper: Detect obfuscation #7259

pull MarcoFalke wants to merge 2 commits into bitcoin:0.11 from MarcoFalke:MarcoFalke-2015-dbWrapperObfuscation-0.11 changing 6 files +29 −10
  1. MarcoFalke commented at 9:50 PM on December 26, 2015: member

    Replaces #6919. Fixes #7258. Implements #6613 (comment).

  2. [dbwrapper] Detect obfuscation fa24941c46
  3. pstratem commented at 9:52 PM on December 26, 2015: contributor

    concept ACK fa24941c46fe0663efa081326940099313df292f

  4. luke-jr commented at 9:52 PM on December 26, 2015: member

    Won't this detect the no-op obfuscation too? That wouldn't be a good idea...

  5. pstratem commented at 9:54 PM on December 26, 2015: contributor

    @MarcoFalke luke-jr is right you need to also check for the null obfuscation key

  6. MarcoFalke commented at 10:02 PM on December 26, 2015: member

    @pstratem Why would someone write a null obfuscation key?

  7. pstratem commented at 10:04 PM on December 26, 2015: contributor

    @MarcoFalke it's a quirk of how the obfuscation code works, it's XOR so a null obfuscation key is the same as no obfuscation key

  8. sipa commented at 10:06 PM on December 26, 2015: member

    Do we ever write a null key? (as opposed to treating no key as null)

  9. MarcoFalke commented at 10:07 PM on December 26, 2015: member

    @pstratem But it is never written to the db. This would be like saying I obfuscate every of my GitHub messages with the null obfuscation key. (It's redundant and not needed)

  10. pstratem commented at 10:18 PM on December 26, 2015: contributor

    @MarcoFalke I stand corrected

  11. [init] Fix typo fa3cb4946f
  12. jonasschnelli added the label UTXO Db and Indexes on Dec 27, 2015
  13. laanwj commented at 8:06 AM on January 4, 2016: member

    Concept ACK but doubting if this or #6919 makes more sense. Sure, backporting the whole thing involves somewhat more code but it seemed more useful than introducing a little bit less of code to just warn.

  14. MarcoFalke commented at 11:25 AM on January 4, 2016: member

    @laanwj This can be cherry-picked to 0.10 without conflicts as well. As this issue seems popular ( #7258 (comment) ) we need either #7259 (this) or #6919, imo.

    Keep in mind you can rebase #6919 simply on a commit which reverts #7259 (this), in case you want to reopen after #7259 (this) got merged. ("'Don't Let Perfect Be The Enemy Of Good'")

  15. laanwj commented at 10:44 AM on January 5, 2016: member

    Yeah, this is fine for 0.11. It's easier to test that it rejects a database than to test whether it works.

    Would be nice to have at least one tested ACK, though.

  16. laanwj merged this on Jan 9, 2016
  17. laanwj closed this on Jan 9, 2016

  18. laanwj referenced this in commit 00aefccb12 on Jan 9, 2016
  19. MarcoFalke deleted the branch on Jan 9, 2016
  20. luke-jr referenced this in commit 4124498ea4 on Jan 10, 2016
  21. luke-jr referenced this in commit 4d548f6fdc on Jan 10, 2016
  22. DrahtBot locked this on Sep 8, 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 18:15 UTC

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