Skip to content
LearnBitcoin

ResearchBitcoin Dev Archive lightning-dev list

rfc using payment_hash fields txn vs the others

1 message, Jan 5, 2018. Started by dreamwvr.

dreamwvr

Permalink First message in the Wayback Machine

dreamwvr permalink original

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