--- Log opened Mon Jul 24 00:00:08 2023 00:45 -!- brunoerg [~brunoerg@187.183.43.117] has quit [Ping timeout: 245 seconds] 00:54 -!- Guyver2 [~Guyver@77-174-98-73.fixed.kpn.net] has joined #bitcoin-wizards 00:57 -!- brunoerg [~brunoerg@2804:14c:3bfb:8a:f973:4145:8cb5:f1f9] has joined #bitcoin-wizards 01:02 -!- brunoerg [~brunoerg@2804:14c:3bfb:8a:f973:4145:8cb5:f1f9] has quit [Ping timeout: 240 seconds] 01:05 -!- tromp [~textual@92-110-219-57.cable.dynamic.v4.ziggo.nl] has quit [Quit: My iMac has gone to sleep. ZZZzzz…] 01:08 -!- tromp [~textual@92-110-219-57.cable.dynamic.v4.ziggo.nl] has joined #bitcoin-wizards 01:09 -!- brunoerg [~brunoerg@187.183.43.117] has joined #bitcoin-wizards 01:13 -!- brunoerg [~brunoerg@187.183.43.117] has quit [Ping timeout: 252 seconds] 01:24 -!- duderonomy [~duderonom@c-107-3-165-79.hsd1.ca.comcast.net] has quit [Ping timeout: 244 seconds] 01:28 -!- duderonomy [~duderonom@c-107-3-165-79.hsd1.ca.comcast.net] has joined #bitcoin-wizards 01:39 -!- brunoerg [~brunoerg@2804:14c:3bfb:8a:f973:4145:8cb5:f1f9] has joined #bitcoin-wizards 01:44 -!- brunoerg [~brunoerg@2804:14c:3bfb:8a:f973:4145:8cb5:f1f9] has quit [Ping timeout: 240 seconds] 02:06 -!- tromp [~textual@92-110-219-57.cable.dynamic.v4.ziggo.nl] has quit [Quit: My iMac has gone to sleep. ZZZzzz…] 02:08 -!- tromp [~textual@92-110-219-57.cable.dynamic.v4.ziggo.nl] has joined #bitcoin-wizards 02:28 -!- tromp [~textual@92-110-219-57.cable.dynamic.v4.ziggo.nl] has quit [Quit: My iMac has gone to sleep. ZZZzzz…] 02:30 -!- brunoerg [~brunoerg@2804:14c:3bfb:8a:f973:4145:8cb5:f1f9] has joined #bitcoin-wizards 02:35 -!- brunoerg [~brunoerg@2804:14c:3bfb:8a:f973:4145:8cb5:f1f9] has quit [Ping timeout: 264 seconds] 02:37 -!- brunoerg [~brunoerg@187.183.43.117] has joined #bitcoin-wizards 02:42 -!- brunoerg [~brunoerg@187.183.43.117] has quit [Ping timeout: 260 seconds] 02:43 -!- brunoerg [~brunoerg@187.183.43.117] has joined #bitcoin-wizards 02:44 -!- tromp [~textual@92-110-219-57.cable.dynamic.v4.ziggo.nl] has joined #bitcoin-wizards 02:47 -!- brunoerg [~brunoerg@187.183.43.117] has quit [Ping timeout: 250 seconds] 03:02 -!- GusCtSr [~gustavo@131.161.182.26] has joined #bitcoin-wizards 03:06 -!- brunoerg [~brunoerg@2804:14c:3bfb:8a:f973:4145:8cb5:f1f9] has joined #bitcoin-wizards 03:10 -!- brunoerg [~brunoerg@2804:14c:3bfb:8a:f973:4145:8cb5:f1f9] has quit [Ping timeout: 260 seconds] 03:11 -!- brunoerg [~brunoerg@2804:14c:3bfb:8a:f973:4145:8cb5:f1f9] has joined #bitcoin-wizards 03:16 -!- brunoerg [~brunoerg@2804:14c:3bfb:8a:f973:4145:8cb5:f1f9] has quit [Ping timeout: 264 seconds] 03:22 -!- brunoerg [~brunoerg@187.183.43.117] has joined #bitcoin-wizards 03:27 -!- brunoerg [~brunoerg@187.183.43.117] has quit [Ping timeout: 260 seconds] 03:39 -!- brunoerg [~brunoerg@2804:14c:3bfb:8a:f973:4145:8cb5:f1f9] has joined #bitcoin-wizards 03:44 -!- brunoerg [~brunoerg@2804:14c:3bfb:8a:f973:4145:8cb5:f1f9] has quit [Ping timeout: 260 seconds] 04:12 -!- jonatack [~jonatack@user/jonatack] has quit [Ping timeout: 240 seconds] 04:13 -!- jonatack [~jonatack@user/jonatack] has joined #bitcoin-wizards 04:24 -!- brunoerg [~brunoerg@2804:14c:3bfb:8a:f973:4145:8cb5:f1f9] has joined #bitcoin-wizards 04:28 -!- brunoerg [~brunoerg@2804:14c:3bfb:8a:f973:4145:8cb5:f1f9] has quit [Ping timeout: 260 seconds] 04:37 -!- tromp [~textual@92-110-219-57.cable.dynamic.v4.ziggo.nl] has quit [Quit: My iMac has gone to sleep. ZZZzzz…] 04:45 -!- wudu_ [~wudu@77.185.128.230] has quit [Ping timeout: 250 seconds] 04:53 -!- tromp [~textual@92-110-219-57.cable.dynamic.v4.ziggo.nl] has joined #bitcoin-wizards 04:57 -!- greypw2546002161 [~greypw254@grey.pw] has quit [Quit: Ping timeout (120 seconds)] 04:57 -!- greypw2546002161 [~greypw254@grey.pw] has joined #bitcoin-wizards 04:57 -!- brunoerg [~brunoerg@2804:14c:3bfb:8a:f973:4145:8cb5:f1f9] has joined #bitcoin-wizards 04:58 -!- EmmyNoether [~EmmyNoeth@yoke.ch0wn.org] has quit [Ping timeout: 250 seconds] 05:04 -!- EmmyNoether [~EmmyNoeth@yoke.ch0wn.org] has joined #bitcoin-wizards 05:04 -!- brunoerg [~brunoerg@2804:14c:3bfb:8a:f973:4145:8cb5:f1f9] has quit [Ping timeout: 260 seconds] 05:12 -!- brunoerg [~brunoerg@2804:14c:3bfb:8a:f973:4145:8cb5:f1f9] has joined #bitcoin-wizards 05:15 -!- wudu_ [~wudu@77.185.128.230] has joined #bitcoin-wizards 05:16 -!- brunoerg [~brunoerg@2804:14c:3bfb:8a:f973:4145:8cb5:f1f9] has quit [Ping timeout: 258 seconds] 05:34 -!- tromp [~textual@92-110-219-57.cable.dynamic.v4.ziggo.nl] has quit [Quit: My iMac has gone to sleep. ZZZzzz…] 05:37 -!- brunoerg [~brunoerg@187.183.43.117] has joined #bitcoin-wizards 05:41 -!- bitdex [~bitdex@gateway/tor-sasl/bitdex] has quit [Quit: = ""] 05:42 -!- brunoerg [~brunoerg@187.183.43.117] has quit [Ping timeout: 252 seconds] 05:54 -!- brunoerg [~brunoerg@2804:14c:3bfb:8a:f973:4145:8cb5:f1f9] has joined #bitcoin-wizards 05:58 -!- brunoerg [~brunoerg@2804:14c:3bfb:8a:f973:4145:8cb5:f1f9] has quit [Ping timeout: 260 seconds] 06:07 -!- tromp [~textual@92-110-219-57.cable.dynamic.v4.ziggo.nl] has joined #bitcoin-wizards 06:11 -!- brunoerg [~brunoerg@187.183.43.117] has joined #bitcoin-wizards 06:16 -!- brunoerg [~brunoerg@187.183.43.117] has quit [Ping timeout: 244 seconds] 06:34 -!- brunoerg [~brunoerg@2804:14c:3bfb:8a:f973:4145:8cb5:f1f9] has joined #bitcoin-wizards 06:38 -!- brunoerg [~brunoerg@2804:14c:3bfb:8a:f973:4145:8cb5:f1f9] has quit [Ping timeout: 258 seconds] 06:39 -!- brunoerg [~brunoerg@2804:14c:3bfb:8a:f973:4145:8cb5:f1f9] has joined #bitcoin-wizards 06:44 -!- brunoerg [~brunoerg@2804:14c:3bfb:8a:f973:4145:8cb5:f1f9] has quit [Ping timeout: 244 seconds] 06:55 -!- brunoerg [~brunoerg@187.183.43.117] has joined #bitcoin-wizards 06:59 -!- brunoerg [~brunoerg@187.183.43.117] has quit [Remote host closed the connection] 07:00 -!- brunoerg [~brunoerg@2804:14c:3bfb:8a:f973:4145:8cb5:f1f9] has joined #bitcoin-wizards 07:06 -!- Chris_Stewart_5 [~Chris_Ste@static-68-235-44-117.cust.tzulo.com] has quit [Ping timeout: 244 seconds] 07:11 -!- Chris_Stewart_5 [~Chris_Ste@71-34-175-51.desm.qwest.net] has joined #bitcoin-wizards 07:20 -!- Chris_Stewart_5 [~Chris_Ste@71-34-175-51.desm.qwest.net] has quit [Ping timeout: 250 seconds] 09:30 -!- tromp [~textual@92-110-219-57.cable.dynamic.v4.ziggo.nl] has quit [Quit: My iMac has gone to sleep. ZZZzzz…] 10:11 -!- tromp [~textual@92-110-219-57.cable.dynamic.v4.ziggo.nl] has joined #bitcoin-wizards 10:23 < ademan[m]> OT-ish but are there any encryption "standards"/recommendations for bitcoin applications? In particular I'm interested in protecting private keys and other wallet data. 10:41 -!- tromp [~textual@92-110-219-57.cable.dynamic.v4.ziggo.nl] has quit [Quit: My iMac has gone to sleep. ZZZzzz…] 10:46 -!- vysn [~vysn@user/vysn] has quit [Remote host closed the connection] 11:03 -!- ChanServ [ChanServ@services.libera.chat] has quit [shutting down] 11:15 -!- ChanServ [ChanServ@services.libera.chat] has joined #bitcoin-wizards 11:15 -!- ServerMode/#bitcoin-wizards [+o ChanServ] by molybdenum.libera.chat 11:18 -!- Chris_Stewart_5 [~Chris_Ste@static-68-235-44-53.cust.tzulo.com] has joined #bitcoin-wizards 11:21 -!- jonatack [~jonatack@user/jonatack] has quit [Quit: WeeChat 3.8] 11:39 -!- tromp [~textual@92-110-219-57.cable.dynamic.v4.ziggo.nl] has joined #bitcoin-wizards 12:13 -!- tromp [~textual@92-110-219-57.cable.dynamic.v4.ziggo.nl] has quit [Read error: Connection reset by peer] 12:36 -!- jonatack [~jonatack@user/jonatack] has joined #bitcoin-wizards 12:37 -!- GusCtSr [~gustavo@131.161.182.26] has quit [Ping timeout: 245 seconds] 12:55 -!- GusCtSr [~gustavo@138.121.119.99] has joined #bitcoin-wizards 13:32 -!- tromp [~textual@92-110-219-57.cable.dynamic.v4.ziggo.nl] has joined #bitcoin-wizards 13:33 -!- jon_atack [~jonatack@user/jonatack] has joined #bitcoin-wizards 13:34 -!- jonatack [~jonatack@user/jonatack] has quit [Read error: Connection reset by peer] 13:44 -!- tromp [~textual@92-110-219-57.cable.dynamic.v4.ziggo.nl] has quit [Quit: My iMac has gone to sleep. ZZZzzz…] 13:57 < andytoshi> ademan[m]: not that i'm aware of. if i were doing this i'd probably copy bitcoin core's ad-hoc impl 13:57 < andytoshi> which iirc key-hardens for 0.1s on the machine that the wallet is set up on, then uses aes (i forget which mode) 13:58 < andytoshi> achow101 is working on extending this to support encrypting whole wallets, not just private keys. not sure if he's doing any architectural changes 13:58 < andytoshi> but i think a proper spec would probably look fairly different since we've learned a lot in the last 10 years 14:06 < darosior> For what it's worth C-lightning uses libsodium's default algorithm to derive a key from a password (Argon2id) and uses ChaCha20-Poly1305 to encrypt the `hsm_secret` with that key (also libsodium's recommended algorithm). 14:07 < darosior> https://github.com/ElementsProject/lightning/blob/master/common/hsm_encryption.c 14:07 < BlueMatt[m]> yea, I think I'd use something more modern for key-hardening, iirc bitcoin core just like does sha256 in a loop for 100ms 14:16 < ademan[m]> thanks! 14:25 < andytoshi> the one thing i might consider tweaking would be to increase whatever knob you need to to make it memory-harder 14:25 < andytoshi> like, if this is going to be run on a consumer desktop that only needs to unlock one wallet at a time, why not make it use 2gb of memory or something 14:25 < BlueMatt[m]> right, that, so dont use sha :) 14:25 < andytoshi> lol yeah :) 14:28 < andytoshi> i didn't realize that's what Core did when i said "i'd probably copy core" :P 14:28 < BlueMatt[m]> i mean has the core algo changed since it was added almost a decade ago now? 14:28 < BlueMatt[m]> back then memory hard hashing was not as much of a thing :) 14:29 < ademan[m]> not that I would roll my own crypto ever but couldn't you make sha memory hard by reversing it? something like sha256( sha256( N || pw ) || sha256( N - 1 || pw ) || ... sha256( 1 || pw ) || sha256( 0 || pw ) ) you'd have to keep the N intermediate values in memory? 14:29 < ademan[m]> oops, off-by one in my pseudo code 😂 14:30 < BlueMatt[m]> maybe? there's probably some TMTO there tho, especially if you're looking at it from an asic pov 14:30 < BlueMatt[m]> just in general you can make sha a shitload faster on an asic 14:30 < ademan[m]> what I proposed doens't prevent you from calculating the intermediates out of order lol 14:30 < darosior> On this topic libsodium's Argon2id with "moderate" parameter is quite memory intensive: it requires 256MiB of RAM. https://github.com/ElementsProject/lightning/blob/5148fcaeed1fbb13a367bbdea4e5e71b674de3ac/common/hsm_encryption.c#L31-L35 14:31 < ademan[m]> should have been like sha256^N(pw) instead of sha256(N || pw) 14:31 < ademan[m]> that's what I get for spitballing lol 14:32 < darosior> At the time i guess i felt like going with "sensitive" and 1GB of RAM was a bit overkill. 14:32 < BlueMatt[m]> oh, heh, that's what i thought you meant :) 14:32 < BlueMatt[m]> darosior: 1GB is a lot for many machines, people with RPis or VMs will end up hitting swap for that a lot 14:32 < ademan[m]> I appreciate you giving me the benefit of the doubt, it is what I initially meant but by the time I finished writing it out I had forgotten lol 14:33 < darosior> Yeah that's why i went with moderate which hits a sweatspot between requiring some memory but not going crazy either 14:34 < achow101> BlueMatt[m]: core's keys stretching absolutely has not changed since it was first implemented lol 14:34 < BlueMatt[m]> ha, well then dont copy core, I absolutely knew nothing about crypto when i wrote that a decade ago 😂 14:35 < BlueMatt[m]> surprised it wasnt more broken than it was (and it was kinda broken cause of the db) 14:35 < achow101> there's a comment for an enum to add the option to use scrypt, but it's not been implemented 14:35 < BlueMatt[m]> ha 15:42 -!- Guyver2 [~Guyver@77-174-98-73.fixed.kpn.net] has quit [Quit: Going offline, see ya! (www.adiirc.com)] 16:06 -!- wudu_ [~wudu@77.185.128.230] has quit [Ping timeout: 246 seconds] 16:12 -!- AaronvanW [~AaronvanW@user/AaronvanW] has quit [Quit: Leaving...] 16:26 -!- bitdex [~bitdex@gateway/tor-sasl/bitdex] has joined #bitcoin-wizards 17:37 -!- brunoerg [~brunoerg@2804:14c:3bfb:8a:f973:4145:8cb5:f1f9] has quit [Remote host closed the connection] 17:37 -!- brunoerg [~brunoerg@2804:14c:3bfb:8a:f973:4145:8cb5:f1f9] has joined #bitcoin-wizards 17:42 -!- brunoerg [~brunoerg@2804:14c:3bfb:8a:f973:4145:8cb5:f1f9] has quit [Ping timeout: 264 seconds] 17:48 -!- jamesob443688 [~jamesob@108.44.248.162] has joined #bitcoin-wizards 17:48 -!- jamesob [~jamesob@108.44.248.162] has joined #bitcoin-wizards 18:12 -!- brunoerg [~brunoerg@2804:14c:3bfb:8a:f973:4145:8cb5:f1f9] has joined #bitcoin-wizards 18:17 -!- brunoerg [~brunoerg@2804:14c:3bfb:8a:f973:4145:8cb5:f1f9] has quit [Ping timeout: 260 seconds] 18:47 -!- brunoerg [~brunoerg@2804:14c:3bfb:8a:f973:4145:8cb5:f1f9] has joined #bitcoin-wizards 18:52 -!- brunoerg [~brunoerg@2804:14c:3bfb:8a:f973:4145:8cb5:f1f9] has quit [Ping timeout: 244 seconds] 19:21 -!- brunoerg [~brunoerg@2804:14c:3bfb:8a:f973:4145:8cb5:f1f9] has joined #bitcoin-wizards 19:26 -!- brunoerg [~brunoerg@2804:14c:3bfb:8a:f973:4145:8cb5:f1f9] has quit [Ping timeout: 260 seconds] 19:54 -!- brunoerg [~brunoerg@187.183.43.117] has joined #bitcoin-wizards 19:58 -!- brunoerg [~brunoerg@187.183.43.117] has quit [Ping timeout: 250 seconds] 20:27 -!- brunoerg [~brunoerg@2804:14c:3bfb:8a:f973:4145:8cb5:f1f9] has joined #bitcoin-wizards 20:32 -!- brunoerg [~brunoerg@2804:14c:3bfb:8a:f973:4145:8cb5:f1f9] has quit [Ping timeout: 244 seconds] 20:43 -!- GusCtSr [~gustavo@138.121.119.99] has quit [Remote host closed the connection] 21:01 -!- brunoerg [~brunoerg@2804:14c:3bfb:8a:f973:4145:8cb5:f1f9] has joined #bitcoin-wizards 21:06 -!- brunoerg [~brunoerg@2804:14c:3bfb:8a:f973:4145:8cb5:f1f9] has quit [Ping timeout: 246 seconds] 21:36 -!- brunoerg [~brunoerg@187.183.43.117] has joined #bitcoin-wizards 21:41 -!- brunoerg [~brunoerg@187.183.43.117] has quit [Ping timeout: 250 seconds] 21:55 -!- brunoerg [~brunoerg@2804:14c:3bfb:8a:f973:4145:8cb5:f1f9] has joined #bitcoin-wizards 22:00 -!- brunoerg [~brunoerg@2804:14c:3bfb:8a:f973:4145:8cb5:f1f9] has quit [Ping timeout: 240 seconds] 22:31 -!- brunoerg [~brunoerg@2804:14c:3bfb:8a:f973:4145:8cb5:f1f9] has joined #bitcoin-wizards 22:36 -!- brunoerg [~brunoerg@2804:14c:3bfb:8a:f973:4145:8cb5:f1f9] has quit [Ping timeout: 246 seconds] 23:05 -!- brunoerg [~brunoerg@2804:14c:3bfb:8a:f973:4145:8cb5:f1f9] has joined #bitcoin-wizards 23:06 -!- wudu_ [~wudu@dynamic-077-012-011-020.77.12.pool.telefonica.de] has joined #bitcoin-wizards 23:11 -!- brunoerg [~brunoerg@2804:14c:3bfb:8a:f973:4145:8cb5:f1f9] has quit [Ping timeout: 260 seconds] 23:15 -!- AaronvanW [~AaronvanW@user/AaronvanW] has joined #bitcoin-wizards 23:31 -!- tromp [~textual@92-110-219-57.cable.dynamic.v4.ziggo.nl] has joined #bitcoin-wizards 23:39 -!- brunoerg [~brunoerg@2804:14c:3bfb:8a:f973:4145:8cb5:f1f9] has joined #bitcoin-wizards 23:44 -!- brunoerg [~brunoerg@2804:14c:3bfb:8a:f973:4145:8cb5:f1f9] has quit [Ping timeout: 244 seconds] 23:55 -!- tromp [~textual@92-110-219-57.cable.dynamic.v4.ziggo.nl] has quit [Quit: My iMac has gone to sleep. ZZZzzz…] --- Log closed Tue Jul 25 00:00:09 2023