In the early days of ripple, the company was called RipplePay. It’s vision was to replace banks by stripping the system down and maintaining that all a bank really does is make and receive loans, so if Bob sent Alice $20, that would mean Bobs loan to the bank would reduce slightly and Alices’ would go up slightly.
They wanted payments to be processed using peer to peer trust networks. EX- [Here](https://imgur.com/a/rsqV7)
My question is how would these peer to peer networks work in theory to get that $20 from Alice to Bob?
Secondly, later on in Ripple’s life the Ripple Gateway Structure was implemented. It solved the problem of having the money have to run through these shaky trust lines. EX – [Here](https://imgur.com/a/tOTP4)
Can someone explain to me how money goes into the gateway and comes out as a processed payment?
Thanks in advance. Loving learning about this awesome tech. May we see some green today.