Skip to content

Commit ef01135

Browse files
committedJul 19, 2016
user stories
1 parent 7d4a705 commit ef01135

File tree

1 file changed

+31
-2
lines changed

1 file changed

+31
-2
lines changed
 

‎README.md

+31-2
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,8 @@ Else, a the new code is loaded from the url, if the response
3939
does not have the correct hash, the response is discarded,
4040
and the previous version is run.
4141

42+
### pseudocode
43+
4244
``` js
4345
//secure_url is a url containing a hash.
4446
//this tells where to get the js bundle,
@@ -67,17 +69,44 @@ else
6769
usage()
6870
```
6971

72+
### user stories
7073

71-
## License
74+
#### invite codes
7275

73-
MIT
76+
Alice shares wants to invite Bob to join the p2p revolution.
77+
she generates an invite code, and creates a link containing the address of a server
78+
hosting `web-bootloader` a _secure url_ containing the alice's recommended UI version,
79+
and the invite code. Alice sends this to Bob via a legacy channel (email, twtr, etc)
80+
81+
Bob clicks on that link. his browser first loads the `web-bootloader` script, which
82+
then loads the secure url, which then uses the invite code to join the network.
83+
84+
Now Bob is cryptographically linked into the network.
7485

86+
#### manual updates
7587

88+
Alice has been hacking on a new feature for her prefered UI client.
89+
she creates a new js bundle and publishes it as a blob.
90+
Then she posts a message announcing the new version, containing the link.
91+
Bob (or anyone else) can then click on that link to load that version as their client.
7692

93+
#### automatic updates
7794

95+
Bob thinks the work Alice is doing is great, but doesn't want to bother manually updating.
96+
He just _subscribes_ to her updates (for a given app), and his client updates itself.
7897

98+
#### temporary update
7999

100+
Charlie is writing an app similar to Alice's. Alice wants to try it out, but not necessarily
101+
to use that as her main thing. This means Alice needs to have a option at somepoint when loading
102+
the app to choose either not to persist the version, or just to run one version.
80103

104+
> as long as it's possible to manage versions, then Alice can select which version she wants to run,
105+
> and remove versions she no longer wants/needs.
106+
107+
## License
108+
109+
MIT
81110

82111

83112

0 commit comments

Comments
 (0)
Please sign in to comment.