Skip to content

Commit

Permalink
remove encrypt patch
Browse files Browse the repository at this point in the history
  • Loading branch information
vepkenez committed Jul 20, 2021
1 parent c534baa commit c43a6d0
Showing 1 changed file with 1 addition and 9 deletions.
10 changes: 1 addition & 9 deletions umbral-pre-wasm/patches/api-compatibility.js.txt
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
contents added by umbral-pre-wasm makefile/build script
*/

import { KeyFrag, encryptPlaintext } from "./umbral_pre_wasm_bg.js";
import { KeyFrag } from "./umbral_pre_wasm_bg.js";

export const decrypt_reencrypted = (
receiving_sk,//: SecretKey,
Expand All @@ -18,14 +18,6 @@ export const decrypt_reencrypted = (
return capsuleWithCFrags.decryptReencrypted(receiving_sk, delegating_pk, ciphertext);
}

export function encrypt(delegating_pk, plaintext) {
const encryptionResult = encryptPlaintext(delegating_pk, plaintext)
return {
capsule: encryptionResult.capsule,
ciphertext: encryptionResult.ciphertext
}
}

KeyFrag.prototype.verify = (verifying_pk, optional = {delegating_pk, receiving_pk} = {}) => {
const delegating_pk = optional.delegating_pk
const receiving_pk = optional.receiving_pk
Expand Down

0 comments on commit c43a6d0

Please sign in to comment.