diff options
author | Chocobozzz <florian.bigard@gmail.com> | 2017-11-17 15:20:42 +0100 |
---|---|---|
committer | Chocobozzz <florian.bigard@gmail.com> | 2017-11-27 19:40:52 +0100 |
commit | 9a27cdc27c900feaae5f6db4315c4ccdfc0c4493 (patch) | |
tree | f91fcfa0fa1a2e45aae1c5333ef2f7ec60e56ef0 /server/helpers/peertube-crypto.ts | |
parent | 975e6e0e44e2f2b25f804cd48a62e2a8d9e8117a (diff) | |
download | PeerTube-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.ts | 5 |
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 @@ | |||
1 | import * as jsonld from 'jsonld' | ||
2 | import * as jsig from 'jsonld-signatures' | ||
3 | jsig.use('jsonld', jsonld) | ||
4 | |||
5 | import { | 1 | import { |
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' |
16 | import { logger } from './logger' | 12 | import { logger } from './logger' |
17 | import { AccountInstance } from '../models/account/account-interface' | 13 | import { AccountInstance } from '../models/account/account-interface' |
14 | import { jsig } from './custom-jsonld-signature' | ||
18 | 15 | ||
19 | async function createPrivateAndPublicKeys () { | 16 | async function createPrivateAndPublicKeys () { |
20 | logger.info('Generating a RSA key...') | 17 | logger.info('Generating a RSA key...') |