git ssb

1+

Dominic / ssb-keys



Commit a7b489ec29269969dcaf77b619d040068f561323

add the encoding too, otherwise you need to secure-scuttlebutt/defaults

Dominic Tarr committed on 3/22/2015, 7:24:43 AM
Parent: 5cdd32a741a7455baf02129d6404c06638d76228

Files changed

index.jschanged
index.jsView
@@ -235,4 +235,16 @@
235235 ts: Date.now(),
236236 public: keys.public
237237 })
238238 }
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