Commit c2f16de153b14e5ca7eb318f62499d21d893849d
remove ecc reference
Dominic Tarr committed on 10/10/2017, 6:38:31 PMParent: 8ebcb5459250b77731dc4bd9153842fe0de7ea62
Files changed
storage.js | changed |
storage.js | |||
---|---|---|---|
@@ -59,10 +59,8 @@ | |||
59 | 59 … | var keys = JSON.parse(privateKey) | |
60 | 60 … | if(!u.hasSigil(keys.id)) keys.id = '@' + keys.public | |
61 | 61 … | return keys | |
62 | 62 … | } catch (_) { console.error(_.stack) } | |
63 | - | ||
64 | - return u.keysToJSON(ecc.restore(u.toBuffer(privateKey)), 'k256') | ||
65 | 63 … | } | |
66 | 64 … | ||
67 | 65 … | exports.load = function(filename, cb) { | |
68 | 66 … | filename = toFile(filename, 'secret') | |
@@ -109,4 +107,6 @@ | |||
109 | 107 … | ||
110 | 108 … | return exports | |
111 | 109 … | } | |
112 | 110 … | ||
111 … | + | ||
112 … | + |
Built with git-ssb-web