Commit a7b489ec29269969dcaf77b619d040068f561323
add the encoding too, otherwise you need to secure-scuttlebutt/defaults
Dominic Tarr committed on 3/22/2015, 7:24:43 AMParent: 5cdd32a741a7455baf02129d6404c06638d76228
Files changed
index.js | changed |
index.js | ||
---|---|---|
@@ -235,4 +235,16 @@ | ||
235 | 235 | ts: Date.now(), |
236 | 236 | public: keys.public |
237 | 237 | }) |
238 | 238 | } |
239 | + | |
240 | +exports.codec = { | |
241 | + decode: function (string) { | |
242 | + return JSON.parse(string) | |
243 | + }, | |
244 | + encode: function (obj) { | |
245 | + return JSON.stringify(obj, null, 2) | |
246 | + }, | |
247 | + buffer: false | |
248 | +} | |
249 | + | |
250 | +exports.keys = exports |
Built with git-ssb-web