diff options
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...') |