Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

RFC: remove block API #8

Open
alanshaw opened this issue Nov 6, 2018 · 3 comments
Open

RFC: remove block API #8

alanshaw opened this issue Nov 6, 2018 · 3 comments

Comments

@alanshaw
Copy link
Member

alanshaw commented Nov 6, 2018

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
Copy link
Member

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
Copy link
Member Author

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

@daviddias
Copy link
Member

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants