|
6 | 6 |
|
7 | 7 | # Class: EncryptionUtils |
8 | 8 |
|
9 | | -Defined in: [encryption.ts:290](https://github.com/humanprotocol/human-protocol/blob/d055cfd598260e2e29b8b12885f1ee350eef64a4/packages/sdk/typescript/human-protocol-sdk/src/encryption.ts#L290) |
| 9 | +Defined in: [encryption.ts:290](https://github.com/humanprotocol/human-protocol/blob/faeb610cb2eb1159ae2a32eb5ba27f30a6f24913/packages/sdk/typescript/human-protocol-sdk/src/encryption.ts#L290) |
10 | 10 |
|
11 | 11 | ## Introduction |
12 | 12 |
|
@@ -48,7 +48,7 @@ const keyPair = await EncryptionUtils.generateKeyPair('Human', ' [email protected]'); |
48 | 48 |
|
49 | 49 | > `static` **encrypt**(`message`, `publicKeys`): `Promise`\<`string`\> |
50 | 50 |
|
51 | | -Defined in: [encryption.ts:444](https://github.com/humanprotocol/human-protocol/blob/d055cfd598260e2e29b8b12885f1ee350eef64a4/packages/sdk/typescript/human-protocol-sdk/src/encryption.ts#L444) |
| 51 | +Defined in: [encryption.ts:444](https://github.com/humanprotocol/human-protocol/blob/faeb610cb2eb1159ae2a32eb5ba27f30a6f24913/packages/sdk/typescript/human-protocol-sdk/src/encryption.ts#L444) |
52 | 52 |
|
53 | 53 | This function encrypts a message using the specified public keys. |
54 | 54 |
|
@@ -111,7 +111,7 @@ const result = await EncryptionUtils.encrypt('message', publicKeys); |
111 | 111 |
|
112 | 112 | > `static` **generateKeyPair**(`name`, `email`, `passphrase`): `Promise`\<[`IKeyPair`](../../interfaces/interfaces/IKeyPair.md)\> |
113 | 113 |
|
114 | | -Defined in: [encryption.ts:382](https://github.com/humanprotocol/human-protocol/blob/d055cfd598260e2e29b8b12885f1ee350eef64a4/packages/sdk/typescript/human-protocol-sdk/src/encryption.ts#L382) |
| 114 | +Defined in: [encryption.ts:382](https://github.com/humanprotocol/human-protocol/blob/faeb610cb2eb1159ae2a32eb5ba27f30a6f24913/packages/sdk/typescript/human-protocol-sdk/src/encryption.ts#L382) |
115 | 115 |
|
116 | 116 | This function generates a key pair for encryption and decryption. |
117 | 117 |
|
@@ -158,7 +158,7 @@ const result = await EncryptionUtils.generateKeyPair(name, email, passphrase); |
158 | 158 |
|
159 | 159 | > `static` **getSignedData**(`message`): `Promise`\<`string`\> |
160 | 160 |
|
161 | | -Defined in: [encryption.ts:351](https://github.com/humanprotocol/human-protocol/blob/d055cfd598260e2e29b8b12885f1ee350eef64a4/packages/sdk/typescript/human-protocol-sdk/src/encryption.ts#L351) |
| 161 | +Defined in: [encryption.ts:351](https://github.com/humanprotocol/human-protocol/blob/faeb610cb2eb1159ae2a32eb5ba27f30a6f24913/packages/sdk/typescript/human-protocol-sdk/src/encryption.ts#L351) |
162 | 162 |
|
163 | 163 | This function gets signed data from a signed message. |
164 | 164 |
|
@@ -190,7 +190,7 @@ const signedData = await EncryptionUtils.getSignedData('message'); |
190 | 190 |
|
191 | 191 | > `static` **isEncrypted**(`message`): `boolean` |
192 | 192 |
|
193 | | -Defined in: [encryption.ts:494](https://github.com/humanprotocol/human-protocol/blob/d055cfd598260e2e29b8b12885f1ee350eef64a4/packages/sdk/typescript/human-protocol-sdk/src/encryption.ts#L494) |
| 193 | +Defined in: [encryption.ts:494](https://github.com/humanprotocol/human-protocol/blob/faeb610cb2eb1159ae2a32eb5ba27f30a6f24913/packages/sdk/typescript/human-protocol-sdk/src/encryption.ts#L494) |
194 | 194 |
|
195 | 195 | Verifies if a message appears to be encrypted with OpenPGP. |
196 | 196 |
|
@@ -238,7 +238,7 @@ if (isEncrypted) { |
238 | 238 |
|
239 | 239 | > `static` **verify**(`message`, `publicKey`): `Promise`\<`boolean`\> |
240 | 240 |
|
241 | | -Defined in: [encryption.ts:318](https://github.com/humanprotocol/human-protocol/blob/d055cfd598260e2e29b8b12885f1ee350eef64a4/packages/sdk/typescript/human-protocol-sdk/src/encryption.ts#L318) |
| 241 | +Defined in: [encryption.ts:318](https://github.com/humanprotocol/human-protocol/blob/faeb610cb2eb1159ae2a32eb5ba27f30a6f24913/packages/sdk/typescript/human-protocol-sdk/src/encryption.ts#L318) |
242 | 242 |
|
243 | 243 | This function verifies the signature of a signed message using the public key. |
244 | 244 |
|
|
0 commit comments