From c43a6d0c1505599cc0cf9d29769910e6ad938897 Mon Sep 17 00:00:00 2001 From: damon Date: Tue, 20 Jul 2021 15:33:00 -0700 Subject: [PATCH] remove encrypt patch --- umbral-pre-wasm/patches/api-compatibility.js.txt | 10 +--------- 1 file changed, 1 insertion(+), 9 deletions(-) diff --git a/umbral-pre-wasm/patches/api-compatibility.js.txt b/umbral-pre-wasm/patches/api-compatibility.js.txt index 43ae43d3..2b14f908 100644 --- a/umbral-pre-wasm/patches/api-compatibility.js.txt +++ b/umbral-pre-wasm/patches/api-compatibility.js.txt @@ -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, @@ -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