Skip to content
New issue

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

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

Already on GitHub? Sign in to your account

Is it possible to create keys in the browser? #24

Closed
philholden opened this issue Apr 10, 2016 · 2 comments
Closed

Is it possible to create keys in the browser? #24

philholden opened this issue Apr 10, 2016 · 2 comments

Comments

@philholden
Copy link

I am getting this error

ERROR in ./~/ssb-keys/eccjs.js
Module not found: Error: Cannot resolve module 'eccjs' in /Users/ph185068/personal/songs/swarmlog/song-db/node_modules/ssb-keys
 @ ./~/ssb-keys/eccjs.js 3:10-26

ERROR in ./~/mkdirp/index.js
Module build failed: Error: unsupported type for static module: LogicalExpression
at expression:

 opts.fs || fs

    at traverse (/Users/ph185068/personal/songs/swarmlog/song-db/node_modules/static-module/index.js:301:34)
    at walk (/Users/ph185068/personal/songs/swarmlog/song-db/node_modules/static-module/index.js:224:18)
    at walk (/Users/ph185068/personal/songs/swarmlog/song-db/node_modules/falafel/index.js:49:9)
    at /Users/ph185068/personal/songs/swarmlog/song-db/node_modules/falafel/index.js:46:17
    at forEach (/Users/ph185068/personal/songs/swarmlog/song-db/node_modules/foreach/index.js:12:16)
    at walk (/Users/ph185068/personal/songs/swarmlog/song-db/node_modules/falafel/index.js:34:9)
    at /Users/ph185068/personal/songs/swarmlog/song-db/node_modules/falafel/index.js:46:17
    at forEach (/Users/ph185068/personal/songs/swarmlog/song-db/node_modules/foreach/index.js:12:16)
    at walk (/Users/ph185068/personal/songs/swarmlog/song-db/node_modules/falafel/index.js:34:9)
    at /Users/ph185068/personal/songs/swarmlog/song-db/node_modules/falafel/index.js:41:25
 @ ./~/ssb-keys/index.js 2:17-34

Is there a way I can create keys in browser just using eccjs?

@emilbayes
Copy link
Contributor

k256 keys are now deprecated, so this can be closed :)

@dominictarr
Copy link
Contributor

yup, and for the record, this will create keys and store them in localstorage

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

No branches or pull requests

3 participants