You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
One issue we came up on when we did the signup page for the inflation pool was getting users to trust a page enough to put their private key into a form field.
The signup code itself is only 20-30 lines of code, but since we're hosting js-stellar-sdk ourselves, users will have to make sure our version is not instrumented in any way.
Having SDF host the javascript libraries would be very helpful, since the end-users ultimately have to trust SDF. (If they don't, they're in the wrong place anyway)
Something like this perhaps: cdn.stellar.org/{version-number}}/stellar-sdk.min.js
If you also publish hashes (together w/ the github tag commit perhaps) that would be extra helpful, as web pages could just add SRI to make sure the files aren't changed on your side.
I started checking out cdnjs yesterday but got sidetracked. I think it looks good. Their new approach is to actively ping for new versions of libraries, so we just need to get accepted into the program and then it'll be set up, with no more action needed.
Activity
irisli commentedon Feb 2, 2016
Here is a related issue in js-stellar-base: stellar/js-stellar-base#20
(Just commenting here so that things can be better connected)
johansten commentedon Feb 3, 2016
I started checking out cdnjs yesterday but got sidetracked. I think it looks good. Their new approach is to actively ping for new versions of libraries, so we just need to get accepted into the program and then it'll be set up, with no more action needed.
irisli commentedon Feb 3, 2016
The requirement I saw with cdnjs though was that projects needed at least 100 stars and they should be "production ready" (not alpha or beta).
Right now unfortunately, I don't think js-stellar-sdk is there yet.
johansten commentedon Feb 6, 2016
One of the other things they base inclusion on is npm downloads (>500/month), where we're at triple that right now.
Sacarlson found rawgit.com, which make things even easier, as they just proxy whatever you request. No signup.
So what's missing now is just the SRI hashes.
cyberomin commentedon Feb 16, 2016
Hey @johansten and @irisli, I did submit the SDK to CDNJS yesterday and it has been merged. I think this should have been sorted now.