git ssb

1+

Dominic / ssb-keys



Commit 6cd05c3b43747ff3d3eff28cbaeae653f5d61144

Merge pull request #27 from uiureo/master

remove obsolete methods from readme
Dominic Tarr authored on 8/24/2016, 4:07:43 AM
GitHub committed on 8/24/2016, 4:07:43 AM
Parent: 5ff76f80ceebbc22960e6e4128fb0817635fe031
Parent: 3e5d775772902fe298e6800f90ae206cbdb95bd5

Files changed

README.mdchanged
README.mdView
@@ -42,35 +42,14 @@
4242 private: String
4343 }*/
4444
4545 var hash = ssbkeys.hash(new Buffer('deadbeef', 'hex'))
46-ssbkeys.isHash(hash) // => true
47-
4846 var sig = ssbkeys.sign(k, hash)
4947 ssbkeys.verify(k.public, sig, hash) // => true
5048
51-var secret = new Buffer('deadbeef', 'hex')
52-ssbkeys.hmac(secret, k.private) // => String
53-
5449 var obj = ssbkeys.signObj(k, { foo: 'bar' })
5550 console.log(obj) /* => {
5651 foo: 'bar',
5752 signature: ...
5853 } */
5954 ssbkeys.verifyObj(k, obj) // => true
60-
61-var secret = new Buffer('deadbeef', 'hex')
62-var obj = ssbkeys.signObjHmac(secret, { foo: 'bar' })
63-console.log(obj) /* => {
64- foo: 'bar',
65- hmac: ...
66-} */
67-ssbkeys.verifyObjHmac(secret, obj) // => true
68-
69-var authRequest = ssbkeys.createAuth(k, 'client') // 'client' is default
70-console.log(authRequest) /* => {
71- role: 'client',
72- ts: Number,
73- public: String,
74- signature: ...
75-} */
76-```
55+```

Built with git-ssb-web