In 2000, according to Peter Thiel, he met with the E-Gold team in Anguilla.
Around 2001, Elon and Peter were at PayPal, and they had plans to build a similar digital currency.
In 2002, PayPal was sold, and that pretty much ended the digital currency plan. Instead, PayPal let users link their bank accounts and cards to make payments. This created a bigger dependency on banks.
By 2004, there were over a million E‑Gold accounts. Banks weren’t happy about it. Meanwhile, Elon and Peter understood exactly how much potential this new kind of digital currency had.
In 2007, the banks took the founders of E-Gold to court for running an unlicensed money‑transmitting business. That same year, the E-Gold engineers were out of work.
Bitcoin was invented in 2008, the same year Elon was broke and busy trying to save both SpaceX and Tesla from going bankrupt.
His theory is that Elon and Peter hired the smartest engineers from the E-Gold team and asked them to build blockchain so they could create their own version of E-Gold. The team worked on Bitcoin from 2007 to 2010 under the alias of Nakamoto.