Skip to content
New issue

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

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

Already on GitHub? # to your account

Consider removing crypto_api #1123

Closed
christophersanborn opened this issue Jul 6, 2018 · 2 comments
Closed

Consider removing crypto_api #1123

christophersanborn opened this issue Jul 6, 2018 · 2 comments

Comments

@christophersanborn
Copy link
Member

Consider removing crypto_api (http://docs.bitshares.org/api/crypto.html), or, if retaining, to remove from default api_access list.

crypto_api exposes functions for blind and stealth operations which, for security, should be performed wallet-side, and not offloaded to the API node. (Doing so exposes private values and blinding factors to the node, which may abuse the info.)

Per issue here, it is evident that crypto_api was not intended for long-standing inclusion nor for general public use:

For starters we will assume these calls exist, and simply relay them to a C++ node to evaluate and return the result. Then we can replace the RPC calls with Javascript implementations. After we have proven the rest of the system works.

Leaving the API exposed by default may incur a risk of naive wallet developers relying on the API to perform range proof operations that are not performant in a browser environment of or embedded (e.g. smartphone) environment.

Inclusion in default api_access: https://github.com/bitshares/bitshares-core/blob/master/libraries/app/application.cpp#L436-L440

More info (historical): cryptonomex/graphene#500, cryptonomex/graphene#582

@abitmore
Copy link
Member

abitmore commented Jul 6, 2018

I agree to remove them from default api_access list.

christophersanborn added a commit to christophersanborn/bitshares-core that referenced this issue Jul 7, 2018
oxarbitrage added a commit that referenced this issue Jul 7, 2018
Remove crypto_api from default list of allowed APIs. (issue #1123)
@oxarbitrage
Copy link
Member

closed by #1125

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

No branches or pull requests

3 participants