@@ -39,6 +39,8 @@ Else, a the new code is loaded from the url, if the response
39
39
does not have the correct hash, the response is discarded,
40
40
and the previous version is run.
41
41
42
+ ### pseudocode
43
+
42
44
``` js
43
45
// secure_url is a url containing a hash.
44
46
// this tells where to get the js bundle,
67
69
usage ()
68
70
```
69
71
72
+ ### user stories
70
73
71
- ## License
74
+ #### invite codes
72
75
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.
74
85
86
+ #### manual updates
75
87
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.
76
92
93
+ #### automatic updates
77
94
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.
78
97
98
+ #### temporary update
79
99
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.
80
103
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
81
110
82
111
83
112
0 commit comments