@@ -110,7 +110,7 @@ const getDecryptor = () => {
110110 * This function is intended for debugging purposes only.
111111 * It cannot be used in production code, since it requires the FHE private key for decryption.
112112 *
113- * @param {bigint } a handle to decrypt
113+ * @param {bigint } handle handle to decrypt
114114 * @returns {bool }
115115 */
116116export const decryptBool = async ( handle : string ) : Promise < boolean > => {
@@ -127,7 +127,7 @@ export const decryptBool = async (handle: string): Promise<boolean> => {
127127 * This function is intended for debugging purposes only.
128128 * It cannot be used in production code, since it requires the FHE private key for decryption.
129129 *
130- * @param {bigint } a handle to decrypt
130+ * @param {bigint } handle handle to decrypt
131131 * @returns {bigint }
132132 */
133133export const decrypt8 = async ( handle : string ) : Promise < bigint > => {
@@ -144,7 +144,7 @@ export const decrypt8 = async (handle: string): Promise<bigint> => {
144144 * This function is intended for debugging purposes only.
145145 * It cannot be used in production code, since it requires the FHE private key for decryption.
146146 *
147- * @param {bigint } a handle to decrypt
147+ * @param {bigint } handle handle to decrypt
148148 * @returns {bigint }
149149 */
150150export const decrypt16 = async ( handle : string ) : Promise < bigint > => {
@@ -161,7 +161,7 @@ export const decrypt16 = async (handle: string): Promise<bigint> => {
161161 * This function is intended for debugging purposes only.
162162 * It cannot be used in production code, since it requires the FHE private key for decryption.
163163 *
164- * @param {bigint } a handle to decrypt
164+ * @param {bigint } handle handle to decrypt
165165 * @returns {bigint }
166166 */
167167export const decrypt32 = async ( handle : string ) : Promise < bigint > => {
@@ -178,7 +178,7 @@ export const decrypt32 = async (handle: string): Promise<bigint> => {
178178 * This function is intended for debugging purposes only.
179179 * It cannot be used in production code, since it requires the FHE private key for decryption.
180180 *
181- * @param {bigint } a handle to decrypt
181+ * @param {bigint } handle handle to decrypt
182182 * @returns {bigint }
183183 */
184184export const decrypt64 = async ( handle : string ) : Promise < bigint > => {
@@ -195,7 +195,7 @@ export const decrypt64 = async (handle: string): Promise<bigint> => {
195195 * This function is intended for debugging purposes only.
196196 * It cannot be used in production code, since it requires the FHE private key for decryption.
197197 *
198- * @param {bigint } a handle to decrypt
198+ * @param {bigint } handle handle to decrypt
199199 * @returns {bigint }
200200 */
201201export const decrypt128 = async ( handle : string ) : Promise < bigint > => {
@@ -212,7 +212,7 @@ export const decrypt128 = async (handle: string): Promise<bigint> => {
212212 * This function is intended for debugging purposes only.
213213 * It cannot be used in production code, since it requires the FHE private key for decryption.
214214 *
215- * @param {bigint } a handle to decrypt
215+ * @param {bigint } handle handle to decrypt
216216 * @returns {bigint }
217217 */
218218export const decrypt256 = async ( handle : string ) : Promise < bigint > => {
@@ -229,7 +229,7 @@ export const decrypt256 = async (handle: string): Promise<bigint> => {
229229 * This function is intended for debugging purposes only.
230230 * It cannot be used in production code, since it requires the FHE private key for decryption.
231231 *
232- * @param {bigint } a handle to decrypt
232+ * @param {bigint } handle handle to decrypt
233233 * @returns {string }
234234 */
235235export const decryptAddress = async ( handle : string ) : Promise < string > => {
@@ -242,54 +242,3 @@ export const decryptAddress = async (handle: string): Promise<string> => {
242242 return getDecryptor ( ) . decryptAddress ( await getCiphertext ( handle , ethers ) ) ;
243243 }
244244} ;
245-
246- /**
247- * @debug
248- * This function is intended for debugging purposes only.
249- * It cannot be used in production code, since it requires the FHE private key for decryption.
250- *
251- * @param {bigint } a handle to decrypt
252- * @returns {bigint }
253- */
254- export const decryptEbytes64 = async ( handle : string ) : Promise < bigint > => {
255- if ( network . name === 'hardhat' ) {
256- await awaitCoprocessor ( ) ;
257- return BigInt ( await getClearText ( handle ) ) ;
258- } else {
259- return getDecryptor ( ) . decryptEbytes64 ( await getCiphertext ( handle , ethers ) ) ;
260- }
261- } ;
262-
263- /**
264- * @debug
265- * This function is intended for debugging purposes only.
266- * It cannot be used in production code, since it requires the FHE private key for decryption.
267- *
268- * @param {bigint } a handle to decrypt
269- * @returns {bigint }
270- */
271- export const decryptEbytes128 = async ( handle : string ) : Promise < bigint > => {
272- if ( network . name === 'hardhat' ) {
273- await awaitCoprocessor ( ) ;
274- return BigInt ( await getClearText ( handle ) ) ;
275- } else {
276- return getDecryptor ( ) . decryptEbytes128 ( await getCiphertext ( handle , ethers ) ) ;
277- }
278- } ;
279-
280- /**
281- * @debug
282- * This function is intended for debugging purposes only.
283- * It cannot be used in production code, since it requires the FHE private key for decryption.
284- *
285- * @param {bigint } a handle to decrypt
286- * @returns {bigint }
287- */
288- export const decryptEbytes256 = async ( handle : string ) : Promise < bigint > => {
289- if ( network . name === 'hardhat' ) {
290- await awaitCoprocessor ( ) ;
291- return BigInt ( await getClearText ( handle ) ) ;
292- } else {
293- return getDecryptor ( ) . decryptEbytes256 ( await getCiphertext ( handle , ethers ) ) ;
294- }
295- } ;
0 commit comments