--- Log opened Fri Oct 30 00:00:04 2020 01:17 -!- zoe_ [uid464843@gateway/web/irccloud.com/x-bacgdhczetyprekd] has joined #lnp-bp 03:46 < dr_orlovsky> raj_: forgot to tell (but I thought is can be see from NoEncryption example): no need to do anything related to TCP sockets or use them at all, or care about multithreading. It's all already done in different levels. Another reason why we can't just copy-paste code from rust-lightning PR. We need to encrypt/decrypt only a vec of data, and handshake is also happens using function calls providing other peer responses as ready-to-use vecs 10:32 < raj_> dr_orlovsky: Noted. I haven't done anything related to networking, just refactored the above codes to handle our requirements and implement handshake state transitions. I have created a new module `noise` which will host all the BOLT8 specific logics. The refactoring is done and all the tests are passing. Only thing remaining in to implement `Transcode`, `Bipolar` etc traits to make the resulting connection structure (` 10:32 < raj_> conduit`) interoperable. Which bring me to my next question. 10:32 < raj_> I am stuck with this line here https://github.com/LNP-BP/rust-lnpbp/blob/f8bd390cacf3e275a3d142ebdb82ecb38ebcf98a/src/lnp/session/transcoders.rs#L132 10:33 < raj_> Well actually sorry, i think i solved the problem. My bad, i didn't look hard enough. 10:34 < dr_orlovsky> no probs :) 10:36 < dr_orlovsky> The whole idea is that we separate logic into small modular pieces. Noise transcoder should not do anything other than processing data in vec/slice form. No need to implement any BOLTs other than only *first* part of BOLT-8 (chacha20poly and handshake). Message structure is already checked (second part of the bolt-8) 10:38 < raj_> Noted. It only has AEAD and Handshake logic. I didn't implement msg handler which i found is already covered. I will be making the draft PR soon. From there we can discuss what else needs to be modified. 10:43 < dr_orlovsky> great, thank you 13:03 -!- JD2983 [~jarret@S01069050cacf3d53.ed.shawcable.net] has quit [Read error: Connection reset by peer] 13:15 -!- zoe_ [uid464843@gateway/web/irccloud.com/x-bacgdhczetyprekd] has quit [Quit: Connection closed for inactivity] --- Log closed Sat Oct 31 00:00:05 2020