--- Log opened Sat Dec 11 00:00:57 2021 03:27 -!- siv2r[m] [~siv2rmatr@2001:470:69fc:105::fed3] has joined #secp256k1 03:27 < siv2r[m]> I was playing around with the `_sha256` API (to review pr 731). I tried creating a sha256 digest using the following steps:... (full message at https://libera.ems.host/_matrix/media/r0/download/libera.chat/fbbe4fab8b6e408f8928fdb0ee8118a0515926c9) 03:28 < siv2r[m]> Am I doing something wrong here? 04:54 < nickler> siv2r[m]: how do you know that the "output is incorrect"? 04:54 -!- robertspigler [~robertspi@2001:470:69fc:105::2d53] has joined #secp256k1 06:32 -!- pieter[m] [~pieterwui@2001:470:69fc:105::1:490e] has joined #secp256k1 07:16 -!- roconnor [~roconnor@coq/roconnor] has joined #secp256k1 07:20 < robot-dreams> Maybe the length of 40 bytes is including the trailing null terminator '\0', and you should use 39 bytes instead? 09:41 < robot-dreams> Just wondering, how do you all think about xonly_pubkeys in a way to avoid getting confused / dropping minus signs? 09:43 < sipa> i think one way of thinking about them is as a further reduced version of xpubs; for some operations (bip32) you need the full xpub, but for many it's ok not to have the chaincode; similarly for many operations (ecdsa, key tweaking) you need the pubkey, but for some (schnorr) the x-only pubkey suffices 09:47 < robot-dreams> Oh ok, that's helpful 10:22 -!- halosghost [~halosghos@user/halosghost] has quit [Ping timeout: 260 seconds] 13:29 -!- ghost43 [~ghost43@gateway/tor-sasl/ghost43] has quit [Ping timeout: 276 seconds] 13:30 -!- elsirion [~quassel@gateway/tor-sasl/elsirion] has quit [Ping timeout: 276 seconds] 13:41 -!- elsirion [~quassel@gateway/tor-sasl/elsirion] has joined #secp256k1 13:42 -!- ghost43 [~ghost43@gateway/tor-sasl/ghost43] has joined #secp256k1 15:23 < siv2r[m]> robot-dreams: Thanks! it works as expected if I use 39 bytes as message size 18:22 -!- halosghost [~halosghos@user/halosghost] has joined #secp256k1 21:30 -!- andytoshi [~apoelstra@user/andytoshi] has quit [Remote host closed the connection] --- Log closed Sun Dec 12 00:00:59 2021