--- Log opened Tue Apr 19 00:00:59 2022 00:55 -!- elsirion [~quassel@gateway/tor-sasl/elsirion] has quit [Remote host closed the connection] 00:55 -!- elsirion [~quassel@gateway/tor-sasl/elsirion] has joined #secp256k1 06:24 -!- halosghost [~halosghos@user/halosghost] has joined #secp256k1 13:18 < halosghost> well, I don't know if it counts as “good news,” but I'm happy to report that all my shenanigans diving into the public and private API, I've found I only needed one additional capability (everything else works pretty reasonably as-is): to reinterpret a pedersen commitment as a pubkey 13:18 < halosghost> I don't really imagine anyone would be comfortable with that being merged-in, but it's nice the the only actual library modification we needed for our higher-level protocol is like 2 non-trivial lines of code (which are reasonably trivial anyway) 13:19 < halosghost> (frankly, I don't think I'd be comfortable proposing that diff, but I'm at least confident that the diff itself doesn't introduce a ton of vulns ☺ 13:20 < roconnor> doe you need a pubkey pubkey or an x-only pubkey? 14:15 < halosghost> a pubkey is sufficient 14:27 < roconnor> I mean I was going to say that you can (probably?) hack the serialization format to transform a pederson commitment into an xonly pubkey by droping the first byte. 14:28 < halosghost> oh, probably 14:28 < halosghost> I mean, the routine that I wrote literally just loads a pedersen commitment into a group element and then saves that group element to a pubkey 14:28 < halosghost> very trivial 14:28 < halosghost> or at least, very nearly 14:29 < sipa> roconnor: That requires a roundtrip to serialize/deserialize, but it's certainly possible, also with non-xonly pubkeys 14:29 < sipa> It's still a sign you're doing something wrong though - generators are not public keys 14:29 < roconnor> my point is that it lets one proceed without even asking for an API change. 14:29 < roconnor> assuming you like to YOLO stuff. :) 14:58 < halosghost> oh gosh, I hope I didn't come across as suggesting an API change 14:59 < halosghost> I'm definitely in-agreement with sipa that this is an example of misuse of the API (we're, at minimum, violating the constraints the library's separation between public and private are meant to guarantee) 14:59 < halosghost> but we're also just trying to prove that something is possible without having to take everything back to the drawing board 14:59 < halosghost> so it goes and all that ☺ 15:49 -!- halosghost [~halosghos@user/halosghost] has quit [Quit: WeeChat 2.5-rc1] 18:37 -!- b10c [~quassel@user/b10c] has quit [Remote host closed the connection] 18:37 -!- waxwing [~waxwing@193.29.57.116] has quit [Remote host closed the connection] 18:38 -!- b10c [~quassel@static.33.106.217.95.clients.your-server.de] has joined #secp256k1 18:38 -!- b10c [~quassel@static.33.106.217.95.clients.your-server.de] has quit [Changing host] 18:38 -!- b10c [~quassel@user/b10c] has joined #secp256k1 18:40 -!- waxwing [~waxwing@193.29.57.116] has joined #secp256k1 18:41 -!- real_or_random [~real_or_r@user/real-or-random/x-4440763] has joined #secp256k1 18:41 -!- calvinalvin [~kcalvinal@ec2-3-38-183-204.ap-northeast-2.compute.amazonaws.com] has joined #secp256k1 18:42 -!- real_or_random_ [~real_or_r@user/real-or-random/x-4440763] has quit [Ping timeout: 272 seconds] 18:42 -!- kcalvinalvin [~kcalvinal@ec2-3-38-183-204.ap-northeast-2.compute.amazonaws.com] has quit [Ping timeout: 272 seconds] 18:42 -!- jesseposner [~jesse@user/jesseposner] has quit [Ping timeout: 272 seconds] 18:42 -!- sanket1729_ [~sanket172@ec2-100-24-255-95.compute-1.amazonaws.com] has joined #secp256k1 18:42 -!- sanket1729 [~sanket172@ec2-100-24-255-95.compute-1.amazonaws.com] has quit [Ping timeout: 272 seconds] 18:42 -!- jnewbery [~john@user/jnewbery] has quit [Ping timeout: 272 seconds] 18:43 -!- jesseposner [~jesse@user/jesseposner] has joined #secp256k1 18:44 -!- jnewbery [~john@user/jnewbery] has joined #secp256k1 19:42 < roconnor> Well, if your intention is to just do your own thing with your own fork, that sounds great then. --- Log closed Wed Apr 20 00:00:00 2022