1 2017-12-15 11:21:46 <DSidH> I am having trouble parsing the bitcoind blockchain files. This is from block 000000000000000000daf7a26d903543377d5cdddb962077e58fd11212479eea
 2 2017-12-15 11:21:53 <DSidH> is there anything special about this block?
 3 2017-12-15 11:22:50 <DSidH> I am using the following structure 4 | 4 | 80 | TxData | 4 | 4 | 80 | TxData | 4 | 4 | 80 | TxData | ...
 4 2017-12-15 11:23:13 <DSidH> and then passing the raw bytes to bitcoinj to deserialize the block
 5 2017-12-15 11:23:58 <DSidH> but it fails on this block with error: org.bitcoinj.core.ProtocolException: Claimed byte array length too large: 1076182423
 6 2017-12-15 11:28:04 <DSidH> It seems its related to segwit. Can anyone point me to how I can solve this. I don't mind writing the tx parser myself
 7 2017-12-15 11:29:16 <arubi> they do have a segwit branch on github, did you try that?
 8 2017-12-15 11:31:05 <DSidH> @arubi Checking that but its still under development
 9 2017-12-15 11:31:40 <DSidH> I think best would be to parse the tx myself. Just need some validation that the block encoding is same and only the tx structure is updated
10 2017-12-15 11:31:59 <arubi> yes it's only the transactions
11 2017-12-15 11:32:03 <arubi> the header is the same
12 2017-12-15 11:32:43 <DSidH> ok thanks. I'll report back. https://bitcoincore.org/en/segwit_wallet_dev/#transaction-serialization
13 2017-12-15 11:32:55 <DSidH> using the above link a reference
14 2017-12-15 11:33:32 <arubi> DSidH, https://github.com/bitcoin/bips/blob/master/bip-0144.mediawiki
15 2017-12-15 11:33:54 <DSidH> arubi: thanks
16 2017-12-15 15:38:45 <DSidH> For segwit:The marker MUST be 0x00.  The flag MUST be 0x01 (from https://bitcoincore.org/en/segwit_wallet_dev/ )
17 2017-12-15 15:39:21 <DSidH> while https://github.com/bitcoin/bips/blob/master/bip-0144.mediawiki#Serialization says flag should be non-zero
18 2017-12-15 15:39:25 <DSidH> which is correct?
19 2017-12-15 18:56:37 <AndBobsYourUncle> Hey guys. Any tips on where to point me for an iOS SDK for building a Bitcoin wallet?
20 2017-12-15 19:02:59 <AndBobsYourUncle> Guessing oleganza/CoreBitcoin.
21 2017-12-15 22:02:06 <AndBobsYourUncle> Well, oleganza/CoreBitcoin is out. After getting it to successfully store a generated pass phrase in the keychain, and generating the first HD address... it's not SegWit.
22 2017-12-15 22:02:40 <AndBobsYourUncle> Anyone know of any iOS libraries that could be used to generate SegWit addresses/transactions?