Comments (3)
This is all tied up with the difficulty of persistence in browsers. More noodling below.
Use cases:
- In-browser, no app server (e.g. storj.pics)
- In-browser, w/ app server (e.g. video streaming service)
- Non-browser apps (e.g. dropbox clone)
Case 3 is kinda trivial: it can persist the mnemonic locally. So the problem is confined to Cases 1&2. Case 2 can allow the app server to facilitate moving the mnemonic somehow. Case 1 can't.
So Case 1 will pretty much always require the user to input a mnemonic to interact with non-public files. Case 2's behavior will depend on the app, and that's okay.
I think the correct approach is accepting the mnemonic (or a file key) as an argument to anything requiring it, and letting apps figure out how exactly it gets there.
from storj.js.
We ended up talking about this on slack. createFile
should now handle keys properly: https://github.com/Storj/storj.js/blob/NewAPI/lib/api/createFile.js#L52-L69
from storj.js.
The final API pushes key management and mnemonic management out to userland. You are required to supply the constructor your key and mnemonic if you want to be able to authenticate against bridge and encrypt/decrypt files.
from storj.js.
Related Issues (20)
- Error on upload: Not Enough Entropy HOT 1
- More than one instance of bitcore-lib HOT 11
- Travis builds are broken HOT 2
- Reduce size of final bundle HOT 2
- Need to populate file properties
- appedTo is recursive
- File API methods should be safe to call before `ready` HOT 1
- Document makePublic
- Implement removeKey
- Implement getKeyList
- Improve stack traces for tests HOT 2
- Update render-media
- Implement file.on('data' HOT 4
- UMD bundle exported as storj HOT 1
- Add `updateBucketById` method HOT 2
- Fix errors in README.MD HOT 1
- Add support for erasure coding HOT 1
- Update docs for `keypair.sign(message)` HOT 1
- Error: Cannot find module 'storj' HOT 1
- Unable to install storj via npm HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from storj.js.