git ssb

1+

Dominic / ssb-keys



Commit cdc3f0eab07ea57c208f285cade01f106d98acb3

Merge pull request #13 from dominictarr/master

add the encoding too, otherwise you need to secure-scuttlebutt/defaults
Paul Frazee committed on 3/23/2015, 4:54:42 AM
Parent: 5cdd32a741a7455baf02129d6404c06638d76228
Parent: a7b489ec29269969dcaf77b619d040068f561323

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