git ssb

1+

Dominic / ssb-keys



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.jschanged
index.jsView
@@ -119,9 +119,12 @@
119119 .split('\n').filter(empty).join('')
120120
121121 //if the key is in JSON format, we are good.
122122 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
124127 } catch (_) {}
125128
126129 //else, reconstruct legacy curve...
127130

Built with git-ssb-web