aboutsummaryrefslogtreecommitdiffhomepage
path: root/server/helpers/peertube-crypto.ts
diff options
context:
space:
mode:
authorChocobozzz <florian.bigard@gmail.com>2017-11-17 15:20:42 +0100
committerChocobozzz <florian.bigard@gmail.com>2017-11-27 19:40:52 +0100
commit9a27cdc27c900feaae5f6db4315c4ccdfc0c4493 (patch)
treef91fcfa0fa1a2e45aae1c5333ef2f7ec60e56ef0 /server/helpers/peertube-crypto.ts
parent975e6e0e44e2f2b25f804cd48a62e2a8d9e8117a (diff)
downloadPeerTube-9a27cdc27c900feaae5f6db4315c4ccdfc0c4493.tar.gz
PeerTube-9a27cdc27c900feaae5f6db4315c4ccdfc0c4493.tar.zst
PeerTube-9a27cdc27c900feaae5f6db4315c4ccdfc0c4493.zip
Optimize signature verification
Diffstat (limited to 'server/helpers/peertube-crypto.ts')
-rw-r--r--server/helpers/peertube-crypto.ts5
1 files changed, 1 insertions, 4 deletions
diff --git a/server/helpers/peertube-crypto.ts b/server/helpers/peertube-crypto.ts
index 04a8d5681..c61abfa8e 100644
--- a/server/helpers/peertube-crypto.ts
+++ b/server/helpers/peertube-crypto.ts
@@ -1,7 +1,3 @@
1import * as jsonld from 'jsonld'
2import * as jsig from 'jsonld-signatures'
3jsig.use('jsonld', jsonld)
4
5import { 1import {
6 PRIVATE_RSA_KEY_SIZE, 2 PRIVATE_RSA_KEY_SIZE,
7 BCRYPT_SALT_SIZE 3 BCRYPT_SALT_SIZE
@@ -15,6 +11,7 @@ import {
15} from './core-utils' 11} from './core-utils'
16import { logger } from './logger' 12import { logger } from './logger'
17import { AccountInstance } from '../models/account/account-interface' 13import { AccountInstance } from '../models/account/account-interface'
14import { jsig } from './custom-jsonld-signature'
18 15
19async function createPrivateAndPublicKeys () { 16async function createPrivateAndPublicKeys () {
20 logger.info('Generating a RSA key...') 17 logger.info('Generating a RSA key...')