Commit 6cd05c3b43747ff3d3eff28cbaeae653f5d61144
Merge pull request #27 from uiureo/master
remove obsolete methods from readmeDominic 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.md | changed |
README.md | ||
---|---|---|
@@ -42,35 +42,14 @@ | ||
42 | 42 | private: String |
43 | 43 | }*/ |
44 | 44 | |
45 | 45 | var hash = ssbkeys.hash(new Buffer('deadbeef', 'hex')) |
46 | -ssbkeys.isHash(hash) // => true | |
47 | - | |
48 | 46 | var sig = ssbkeys.sign(k, hash) |
49 | 47 | ssbkeys.verify(k.public, sig, hash) // => true |
50 | 48 | |
51 | -var secret = new Buffer('deadbeef', 'hex') | |
52 | -ssbkeys.hmac(secret, k.private) // => String | |
53 | - | |
54 | 49 | var obj = ssbkeys.signObj(k, { foo: 'bar' }) |
55 | 50 | console.log(obj) /* => { |
56 | 51 | foo: 'bar', |
57 | 52 | signature: ... |
58 | 53 | } */ |
59 | 54 | 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