@@ -43,8 +43,7 @@ export const loadModules = (): Promise<void> => {
4343
4444 if ( ! globalThis . jestTesting ) {
4545 log (
46- `✅ [BLS SDK] wasmExports loaded. ${
47- Object . keys ( exports ) . length
46+ `✅ [BLS SDK] wasmExports loaded. ${ Object . keys ( exports ) . length
4847 } functions available. Run 'wasmExports' in the console to see them.`
4948 ) ;
5049 }
@@ -66,8 +65,7 @@ export const loadModules = (): Promise<void> => {
6665
6766 if ( ! globalThis . jestTesting ) {
6867 log (
69- `✅ [ECDSA SDK ${ env } ] wasmECDSA loaded. ${
70- Object . keys ( wasmECDSA ) . length
68+ `✅ [ECDSA SDK ${ env } ] wasmECDSA loaded. ${ Object . keys ( wasmECDSA ) . length
7169 } functions available. Run 'wasmECDSA' in the console to see them.`
7270 ) ;
7371 }
@@ -80,8 +78,7 @@ export const loadModules = (): Promise<void> => {
8078
8179 if ( ! globalThis . jestTesting ) {
8280 log (
83- `✅ [SEV SNP Utils SDK] wasmSevSnpUtils loaded. ${
84- Object . keys ( exports ) . length
81+ `✅ [SEV SNP Utils SDK] wasmSevSnpUtils loaded. ${ Object . keys ( exports ) . length
8582 } functions available. Run 'wasmSevSnpUtils' in the console to see them.`
8683 ) ;
8784 }
@@ -120,15 +117,14 @@ export const encrypt = (
120117 const publicKey = Buffer . from ( publicKeyHex , 'hex' ) ;
121118
122119 /**
123- * Our system uses BLS12-381 on the G1 curve for encryption.
124- * However, on the SDK side (this function), we expect the public key
125- * to use the G2 curve for signature purposes, hence the switch on public key length.
126- *
127- * The G2 curve, `Bls12381G2`, is typically associated with signature generation/verification,
128- * while G1 is associated with encryption. Here, the length of the public key determines how
129- * we handle the encryption and the format of the returned encrypted message.
130- */
131-
120+ * Our system uses BLS12-381 on the G1 curve for encryption.
121+ * However, on the SDK side (this function), we expect the public key
122+ * to use the G2 curve for signature purposes, hence the switch on public key length.
123+ *
124+ * The G2 curve, `Bls12381G2`, is typically associated with signature generation/verification,
125+ * while G1 is associated with encryption. Here, the length of the public key determines how
126+ * we handle the encryption and the format of the returned encrypted message.
127+ */
132128 if ( publicKeyHex . replace ( '0x' , '' ) . length !== 96 ) {
133129 throw new InvalidParamType (
134130 {
0 commit comments