What is Nostr?
Daniel Kraft [ARCHIVE] /
npub1jelโ€ฆz0lp
2023-06-07 17:43:02

Daniel Kraft [ARCHIVE] on Nostr: ๐Ÿ“… Original date posted:2015-10-07 ๐Ÿ“ Original message:Hi! I hope this is not a ...

๐Ÿ“… Original date posted:2015-10-07
๐Ÿ“ Original message:Hi!

I hope this is not a stupid question, but I thought I'd ask here first
instead of opening a Github ticket (in case I'm wrong).

With the recently merged "obfuscation" patch, content of the
"chainstate" LevelDB is obfuscated by XOR'ing against a random "key".
This is handled by CLevelDBWrapper's Read/Write methods, which probably
cover most of the usecases.

*However*, shouldn't it also be handled when iterating over the
database? In particular, I would expect that the obfuscation key is
applied before line 119 in txdb.cpp (i. e., while iterating over the
coin database in CCoinsViewDB::GetStats).

Is there a reason why this need not be done there, or is this an actual
oversight?

Yours,
Daniel

--
http://www.domob.eu/
OpenPGP: 1142 850E 6DFF 65BA 63D6 88A8 B249 2AC4 A733 0737
Namecoin: id/domob -> https://nameid.org/?name=domob
--
Done: Arc-Bar-Cav-Hea-Kni-Ran-Rog-Sam-Tou-Val-Wiz
To go: Mon-Pri

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 819 bytes
Desc: OpenPGP digital signature
URL: <http://lists.linuxfoundation.org/pipermail/bitcoin-dev/attachments/20151007/f6c7e0f9/attachment.sig>;
Author Public Key
npub1jel84nyt8e0fzkp888x30fyufvqsz8x9trp68s4rez6je30v8ldss0z0lp