1 2018-01-09 06:24:07 <conman> question: can bech32 addresses be used in generation transactions?
2 2018-01-09 06:25:21 <arubi> addresses are not in transactions at all, scriptpubkeys are. and yes, native segwit scripts are possible in generation tx outputs
3 2018-01-09 06:26:43 <conman> thanks is there a document anywhere describing this? I've not found much on bech32 on searching
4 2018-01-09 06:27:31 <arubi> describing what exactly? bech32 and segwit scritpubkeys in transactions are unrelated
5 2018-01-09 06:27:44 <conman> well
6 2018-01-09 06:28:08 <conman> how to get a segwit scriptpubkey from bech32 to use in a generation transaction... I guess that's all it is?
7 2018-01-09 06:29:19 <arubi> why not just set the output to a segwit scriptpubkey like you normally would to a p2pkh or p2pk ?
8 2018-01-09 06:29:37 <arubi> bech32 is encoding, not script
9 2018-01-09 06:30:23 <arubi> if you have miner software that asks you for an encoded address, then you'll have to check if that software supports bech32 itself first
10 2018-01-09 06:30:26 <conman> when decoded is it a pk?
11 2018-01-09 06:31:01 <conman> sorry if I'm missing details...
12 2018-01-09 06:31:02 <arubi> not necessarily
13 2018-01-09 06:31:19 <conman> so when decoded it can decode to a key hash or a script hash?
14 2018-01-09 06:31:38 <arubi> for version 0 witness, yes, but can be other things on newer versions
15 2018-01-09 06:31:50 <arubi> currently version 0 is the only one defined
16 2018-01-09 06:32:03 <arubi> higher versions are just evaluated to true, so anyone-can-spend
17 2018-01-09 06:32:26 <arubi> can you explain what you're trying to do exactly?
18 2018-01-09 06:32:36 <conman> ok so if I were to implement a gen txn to a bech32 address, I'd decode it and then treat it like any p2kh or p2sh transaction?
19 2018-01-09 06:32:57 <arubi> no, you'll treat it as p2wpkh or p2wsh script
20 2018-01-09 06:32:58 <conman> I'm trying to figure out how to create a generation transaction "to" a bech32 address (I know it's not directly to the address)
21 2018-01-09 06:34:30 <arubi> do you know how to construct segwit scriptpubkeys at all? the fact that it's generation tx doesn't matter
22 2018-01-09 06:36:26 <conman> um
23 2018-01-09 06:37:08 <arubi> have to go to work. these are segwit programs : https://github.com/bitcoin/bips/blob/master/bip-0141.mediawiki#Witness_program , this is how to encode bech32 : https://github.com/bitcoin/bips/blob/master/bip-0173.mediawiki .
24 2018-01-09 06:37:17 <conman> thanks
25 2018-01-09 06:37:29 <conman> appreciate it
26 2018-01-09 10:13:20 <Qint> He guys, i'm a security researcher and would like to recommend a change to a certain BIP. What is the best way to do this?
27 2018-01-09 10:39:48 <echeveria> Qint: complain on the mailing list.
28 2018-01-09 10:39:53 <echeveria> Qint: what's your change?
29 2018-01-09 10:44:01 <Qint> echeveria: complain... great choice of words
30 2018-01-09 10:44:10 <echeveria> it's bitcoin-dev.
31 2018-01-09 10:44:22 <echeveria> it's complaining, people who haven't done googling, mixed in with sensible stuff :)
32 2018-01-09 11:21:22 <Qint> echeveria: done
33 2018-01-09 11:22:02 <Qint> Pending review