--- Log opened Wed May 29 00:00:26 2019 00:25 -!- ccdle12 [~ccdle12@218.189.35.1] has quit [Remote host closed the connection] 00:28 -!- TamasBlummer [~Thunderbi@p200300DD67196B5118AC4D1C0949A706.dip0.t-ipconnect.de] has quit [Ping timeout: 264 seconds] 00:28 -!- TamasBlummer [~Thunderbi@p200300DD67196B61A8AAFCF130C8A088.dip0.t-ipconnect.de] has joined #rust-bitcoin 00:32 -!- willpiers [~willpiers@38.75.231.30] has joined #rust-bitcoin 00:37 -!- willpiers [~willpiers@38.75.231.30] has quit [Ping timeout: 272 seconds] 00:59 -!- ccdle12 [~ccdle12@218.189.35.1] has joined #rust-bitcoin 01:15 -!- ccdle12 [~ccdle12@218.189.35.1] has quit [Remote host closed the connection] 02:10 -!- mauz555 [~mauz555@2a01:e35:8ab1:dea0:9cb1:d590:ddfa:6098] has joined #rust-bitcoin 02:14 -!- mauz555 [~mauz555@2a01:e35:8ab1:dea0:9cb1:d590:ddfa:6098] has quit [Client Quit] 02:45 -!- belcher [~belcher@unaffiliated/belcher] has joined #rust-bitcoin 03:50 < stevenroose> Is anyone relying on the OutPoint serde impl to be struct-based instead of string-based? 03:50 < stevenroose> It currently serializes to {"txid": ..., "vout": ...} instead of to ":" like the to_string and from_str do it. 03:50 < stevenroose> I'd like to change that. 04:09 < stevenroose> I'm thinking of struct-based for non-human-readable and string-based for human-readable so we can fix JSON but don't make other formats more verbose (like hashes basically) 04:09 < stevenroose> I pushed an update to https://github.com/rust-bitcoin/rust-bitcoin/pull/269 04:10 < stevenroose> I introduce a new macro serde_string_impl!(Type, "expecting xxx") that implements serde on a type using the Display for Serialize and FromStr for Deserialize. 04:10 < stevenroose> It's used for Address, DerivationPath, ExtendedPrivKey and ExtendedPubKey for now 04:33 -!- willpiers [~willpiers@38.75.231.30] has joined #rust-bitcoin 04:38 -!- willpiers [~willpiers@38.75.231.30] has quit [Ping timeout: 268 seconds] 04:40 < stevenroose> How about a base64 Display for psbt::PartiallySignedTransaction? 05:03 -!- elichai2 [uid212594@gateway/web/irccloud.com/x-wmypufujtkglxbpx] has joined #rust-bitcoin 05:04 < elichai2> ariard: saw it only now, when I say avoid invoking malloc it can be either to avoid using the heap or just because malloc isn't available in the targeted platform 05:13 < elichai2> using GlobalAlloc will also use the heap. I think in the end almost everyone will use the heap unless they have preallocated few MBs on the stack to give around 05:23 < stevenroose> TamasBlummer: any progress on upstreaming the spv filter module? I could try do it myself if you prefer 05:23 < real_or_random> elichai2: for estimating the max size of the ctx: it's probably reasonable enough to hard code an guess for an upper bound and bail out if it turns out to be wrong (if _preallocated_size()) returns more than the guess 05:26 < elichai2> real_or_random: you're saying on our(rust-secp256k1) side? or on the user side? 05:26 < real_or_random> ok, that's a good question 05:27 < elichai2> real_or_random: this adds the functions for the User to use: https://github.com/rust-bitcoin/rust-secp256k1/pull/116 05:27 < elichai2> and he can either allocate or assume 05:32 < real_or_random> you mean "pub fn get_preallocated_size() -> usize" ? sounds good 05:35 < elichai2> real_or_random: yeah, and another 2 for verification only and signing only 05:35 < elichai2> (and then I save a reference to the buffer in the Context struct so the user won't be able to mutate or drop it) 05:37 -!- jtimon [~quassel@181.61.134.37.dynamic.jazztel.es] has joined #rust-bitcoin 05:40 -!- Dean_Guss [~dean@gateway/tor-sasl/deanguss] has quit [Ping timeout: 256 seconds] 05:55 < stevenroose> One sad thing with JSON that we probably can't really fix elegantly is the witness stack for transactions. This is how a Transaction looks like in JSON: https://gist.github.com/stevenroose/33755fe85bc72675a20eca56a798f73d 06:41 -!- dkehn [~dkehn@173-8-249-206-Colorado.hfc.comcastbusiness.net] has joined #rust-bitcoin 07:11 < ariard> elichain2: was thinking with GlobalAlloc you override default allocator, so it let you implement your custom stack-based allocator for your weird-MIPS platform or whatever 07:20 -!- dkehn [~dkehn@173-8-249-206-Colorado.hfc.comcastbusiness.net] has left #rust-bitcoin ["Leaving"] 07:21 < elichai2> yeah. you can override it with it. if we go with that assumption we can just use liballoc and use a Vec ourself 07:35 -!- ccdle12 [~ccdle12@109.154.150.203.sta.inet.co.th] has joined #rust-bitcoin 07:39 -!- willpiers [~willpiers@38.75.231.30] has joined #rust-bitcoin 07:41 -!- willpiers [~willpiers@38.75.231.30] has quit [Remote host closed the connection] 07:42 -!- willpiers [~willpiers@38.75.231.30] has joined #rust-bitcoin 07:42 -!- michaelsdunn1 [~michaelsd@unaffiliated/michaelsdunn1] has joined #rust-bitcoin 07:47 -!- willpiers [~willpiers@38.75.231.30] has quit [Ping timeout: 257 seconds] 08:45 -!- instagibbs [~instagibb@pool-100-15-135-248.washdc.fios.verizon.net] has quit [Ping timeout: 246 seconds] 08:47 -!- willpiers [~willpiers@107-1-237-234-ip-static.hfc.comcastbusiness.net] has joined #rust-bitcoin 08:47 -!- instagibbs [~instagibb@pool-100-15-135-248.washdc.fios.verizon.net] has joined #rust-bitcoin 09:29 -!- willpiers [~willpiers@107-1-237-234-ip-static.hfc.comcastbusiness.net] has quit [Remote host closed the connection] 09:38 -!- willpiers [~willpiers@107-1-237-234-ip-static.hfc.comcastbusiness.net] has joined #rust-bitcoin 10:15 -!- elichai2 [uid212594@gateway/web/irccloud.com/x-wmypufujtkglxbpx] has quit [Quit: Connection closed for inactivity] 12:43 -!- willpiers [~willpiers@107-1-237-234-ip-static.hfc.comcastbusiness.net] has quit [Remote host closed the connection] 13:06 -!- willpiers [~willpiers@107-1-237-234-ip-static.hfc.comcastbusiness.net] has joined #rust-bitcoin 14:24 -!- willpiers [~willpiers@107-1-237-234-ip-static.hfc.comcastbusiness.net] has quit [Remote host closed the connection] 14:35 -!- willpiers [~willpiers@107-1-237-234-ip-static.hfc.comcastbusiness.net] has joined #rust-bitcoin 14:49 -!- michaelsdunn1 [~michaelsd@unaffiliated/michaelsdunn1] has quit [Remote host closed the connection] 15:12 -!- willpiers [~willpiers@107-1-237-234-ip-static.hfc.comcastbusiness.net] has quit [Remote host closed the connection] 15:20 -!- willpiers [~willpiers@107-1-237-234-ip-static.hfc.comcastbusiness.net] has joined #rust-bitcoin 15:49 -!- willpiers [~willpiers@107-1-237-234-ip-static.hfc.comcastbusiness.net] has quit [Remote host closed the connection] 15:57 -!- harding [~harding@li1258-130.members.linode.com] has quit [Ping timeout: 258 seconds] 16:04 -!- willpiers [~willpiers@107-1-237-234-ip-static.hfc.comcastbusiness.net] has joined #rust-bitcoin 16:14 -!- willpiers [~willpiers@107-1-237-234-ip-static.hfc.comcastbusiness.net] has quit [Remote host closed the connection] 16:50 -!- harding [~harding@li1258-130.members.linode.com] has joined #rust-bitcoin 16:55 -!- willpiers [~willpiers@38.75.231.30] has joined #rust-bitcoin 17:17 -!- ghost43 [~daer@gateway/tor-sasl/daer] has quit [Remote host closed the connection] 17:17 -!- ghost43 [~daer@gateway/tor-sasl/daer] has joined #rust-bitcoin 17:38 -!- ccdle12 [~ccdle12@109.154.150.203.sta.inet.co.th] has quit [Remote host closed the connection] 17:46 -!- willpiers [~willpiers@38.75.231.30] has quit [Remote host closed the connection] 17:50 -!- jtimon [~quassel@181.61.134.37.dynamic.jazztel.es] has quit [Quit: gone] 18:00 -!- willpier_ [~willpiers@38.75.231.30] has joined #rust-bitcoin 18:38 -!- ccdle12 [~ccdle12@109.154.150.203.sta.inet.co.th] has joined #rust-bitcoin 18:43 -!- ccdle12 [~ccdle12@109.154.150.203.sta.inet.co.th] has quit [Ping timeout: 245 seconds] 20:27 -!- ccdle12 [~ccdle12@109.154.150.203.sta.inet.co.th] has joined #rust-bitcoin 20:32 -!- ccdle12 [~ccdle12@109.154.150.203.sta.inet.co.th] has quit [Ping timeout: 272 seconds] 21:31 -!- ccdle12 [~ccdle12@109.154.150.203.sta.inet.co.th] has joined #rust-bitcoin 22:15 -!- willpier_ [~willpiers@38.75.231.30] has quit [Remote host closed the connection] 22:49 -!- willpiers [~willpiers@38.75.231.30] has joined #rust-bitcoin 22:53 -!- willpiers [~willpiers@38.75.231.30] has quit [Ping timeout: 244 seconds] --- Log closed Thu May 30 00:00:26 2019