ipfs-shipyard / ipfsx

Experimental IPFS API
MIT License
17 stars 5 forks source link

RFC: remove block API #8

Open alanshaw opened 6 years ago

alanshaw commented 6 years ago

Everything we can do with the block API we can do with the DAG API, and the DAG API prevents us from putting invalid data in IPFS.

daviddias commented 5 years ago

Not quite. Blocks are raw binary blobs and it is what Bitswap (the Block Exchange) understands to trade data. It just so happens that as a user, you pretty much don't have any reason to use the Block API unless you don't want to use IPLD at all.

alanshaw commented 5 years ago

👍 understood - could it be a private API that JS IPFS uses internally or is there something that necessitates it being public?

daviddias commented 5 years ago

I would guess that most of the users won't need it. If we learn that having that available is hurting UX/DX of the APIs, that it can make sense to hide/disable it.