Can someone explain how this works?
From @i2p #I2P docs tech intro:
>Both inbound and outbound tunnels work along similar principles. The tunnel gateway accumulates a number of tunnel messages, eventually preprocessing them into something for tunnel delivery. Next, the gateway encrypts that preprocessed data and forwards it to the first hop. That peer and subsequent tunnel participants add on a layer of encryption after verifying that it isn't a duplicate before forward it on to the next peer. Eventually, the message arrives at the endpoint where the messages are split out again and forwarded on as requested. The difference arises in what the tunnel's creator does - for inbound tunnels, the creator is the endpoint and they simply decrypt all of the layers added, while for outbound tunnels, the creator is the gateway and they pre-decrypt all of the layers so that after all of the layers of per-hop encryption are added, the message arrives in the clear at the tunnel endpoint.
https://geti2p.net/en/docs/how/tech-intro#op.tunnels
So, the encryption is done in reverse order? How do the hops know where to forward the message?
What does "pre-decrypt" mean? I'm guessing it's referring to the fact that decryption is just the inverse of encryption and vice versa?
Did the author accidentally write encryption where he meant to write decryption and vice versa?
I realise all will probably be clear if I keep reading the docs but this passage is really confusing.
Help appreciated. #AskFedi #darknet