aboutsummaryrefslogtreecommitdiffhomepage
path: root/server/helpers/custom-jsonld-signature.ts
diff options
context:
space:
mode:
authorChocobozzz <me@florianbigard.com>2017-12-18 11:53:04 +0100
committerChocobozzz <me@florianbigard.com>2017-12-19 10:53:16 +0100
commitce33ee01cd3806201b676c318e9aa930032921b2 (patch)
treea067f57a571f417fc7b70f39af4302cd17183b07 /server/helpers/custom-jsonld-signature.ts
parent555846c99fa43b237814d32bd55d8124405187d3 (diff)
downloadPeerTube-ce33ee01cd3806201b676c318e9aa930032921b2.tar.gz
PeerTube-ce33ee01cd3806201b676c318e9aa930032921b2.tar.zst
PeerTube-ce33ee01cd3806201b676c318e9aa930032921b2.zip
Use RsaSignature2017
Diffstat (limited to 'server/helpers/custom-jsonld-signature.ts')
-rw-r--r--server/helpers/custom-jsonld-signature.ts6
1 files changed, 3 insertions, 3 deletions
diff --git a/server/helpers/custom-jsonld-signature.ts b/server/helpers/custom-jsonld-signature.ts
index afb960618..e4f28018e 100644
--- a/server/helpers/custom-jsonld-signature.ts
+++ b/server/helpers/custom-jsonld-signature.ts
@@ -1,9 +1,7 @@
1import * as AsyncLRU from 'async-lru' 1import * as AsyncLRU from 'async-lru'
2import * as jsonld from 'jsonld' 2import * as jsonld from 'jsonld/'
3import * as jsig from 'jsonld-signatures' 3import * as jsig from 'jsonld-signatures'
4 4
5jsig.use('jsonld', jsonld)
6
7const nodeDocumentLoader = jsonld.documentLoaders.node() 5const nodeDocumentLoader = jsonld.documentLoaders.node()
8 6
9const lru = new AsyncLRU({ 7const lru = new AsyncLRU({
@@ -17,4 +15,6 @@ jsonld.documentLoader = (url, cb) => {
17 lru.get(url, cb) 15 lru.get(url, cb)
18} 16}
19 17
18jsig.use('jsonld', jsonld)
19
20export { jsig } 20export { jsig }