Commit f49ed9d612208d9cfa2e456cbbdc329ddf133cdf
was getting some objects with two dots <hash>..blake2s.k256, which is wrong
Dominic Tarr committed on 11/22/2014, 2:44:53 PMParent: b56ecdf6d897a3d845deba30a543cfe8336ea4b4
Files changed
index.js | changed |
index.js | ||
---|---|---|
@@ -89,9 +89,9 @@ | ||
89 | 89 | return keysToBase64(ecc.restore(k256, privateKey)) |
90 | 90 | } |
91 | 91 | |
92 | 92 | function tag (key, tag) { |
93 | - return key.toString('base64')+'.' + tag | |
93 | + return key.toString('base64')+'.' + tag.replace(/^\./, '') | |
94 | 94 | } |
95 | 95 | |
96 | 96 | exports.load = function(namefile, cb) { |
97 | 97 | fs.readFile(namefile, 'ascii', function(err, privateKeyStr) { |
Built with git-ssb-web