From dreamwvr at dreamwvr.com Fri Jan 5 09:55:41 2018 From: dreamwvr at dreamwvr.com (dreamwvr) Date: Fri, 5 Jan 2018 02:55:41 -0700 Subject: [Lightning-dev] rfc using payment_hash fields txn vs the others Message-ID: <20180105095541.GA6376@dreamwvr.com> Hi, The donation payment_hash txn field layout is diff in the second lines stanza. Instead it goes right to the bes32 static int. Why is does it not use say a 0x20 to indicate not a bc value or reserved value to indicate no bc value in txn? would it not simpify optimizing for any sort of deep inspection? lnbc <- network to mainnet field 1 <- bes32 field 1234567 <- epochtimestmp (..) the rest layout their fields like.. lnbc <- network to mainnet field bcvalue <- some bc value 1 <- bes32 field (...) simplified with a.. lnbc <- network to mainnet field none_bc_value <- reserved hex value says this is hash_payment 1 <- bes32 (...) nothing more to see here.. just a pseudo random thought. =) Best Regards, dreamwvr at dreamwvr.com