An in-depth analysis of Bitcoin payment network. A discussion of privacy of the Lightning Network. Bi-directional payment channels