No and never! If IPs are stored, then bitcoin wouldn't have been used for illegal things! But it's not! You can get a good idea of what is stored in bitcoin block from the below article,
https://www.investopedia.com/terms/b/blockchain.aspIt says,
- Blocks store information about transactions like the date, time, and dollar amount of your most recent purchase from Amazon. (NOTE: This Amazon example is for illustrative purchases; Amazon retail does not work on a blockchain principle as of this writing)
- Blocks store information about who is participating in transactions. A block for your splurge purchase from Amazon would record your name along with Amazon.com, Inc. (AMZN). Instead of using your actual name, your purchase is recorded without any identifying information using a unique “digital signature,” sort of like a username.
- Blocks store information that distinguishes them from other blocks. Much like you and I have names to distinguish us from one another, each block stores a unique code called a “hash” that allows us to tell it apart from every other block. Hashes are cryptographic codes created by special algorithms. Let’s say you made your splurge purchase on Amazon, but while it’s in transit, you decide you just can’t resist and need a second one. Even though the details of your new transaction would look nearly identical to your earlier purchase, we can still tell the blocks apart because of their unique codes.
Hope this clears up your mind!
Depends on where or how IPs will be stored to prevent Bitcoin from being used for illegal things. Any kind of Companies and people having access to people's IP is its self "illegal" because it violate the fundamental right to privacy in many countries law. Privacy or The Right to Privacy in environment where evil, lawlessness, immorality, uncertainty etc reign is a good thing.
IPs could be thoroughly encrypted and stored on "public network" as long as it's done transparently, safely/securely, immutably. If someone commits a serious crime, the police could have access to the criminal IP... I believe this should be done on thesame decentralized network, for the sake of immutablity, clear rules, accountability, privacy, security, etc features of the Blockchain/decentralized-tech.
In my opinion, any kind of people shouldn't have access to people's IPs if the owners did not do things that deserve getting their IPs exposed to untrustworthy/immoral people