Commit ace73b3d767f81bc5e2733880d76cec0259e9666
if the @ sigil is missing, prepend it
this was created in an weird edgecase where someone installed patchwork before we added the sigils and that file still existed.Dominic Tarr committed on 10/14/2015, 9:26:45 PM
Parent: b6cf4825e0a4f6e6535fdf0109c9f48414be5b84
Files changed
index.js | changed |
index.js | ||
---|---|---|
@@ -119,9 +119,12 @@ | ||
119 | 119 | .split('\n').filter(empty).join('') |
120 | 120 | |
121 | 121 | //if the key is in JSON format, we are good. |
122 | 122 | try { |
123 | - return JSON.parse(private) | |
123 | + var keys = JSON.parse(private) | |
124 | + console.log(keys) | |
125 | + if(!hasSigil(keys.id)) keys.id = '@' + keys.public | |
126 | + return keys | |
124 | 127 | } catch (_) {} |
125 | 128 | |
126 | 129 | //else, reconstruct legacy curve... |
127 | 130 |
Built with git-ssb-web