File tree Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -65,7 +65,7 @@ export const encrypt = async (
6565 * to use the G2 curve for signature purposes, hence the switch on public key length.
6666 *
6767 * The G2 curve, `Bls12381G2`, is typically associated with signature generation/verification,
68- * while G1 is associated with encryption. Here, the length of the public key determines how
68+ * while G1 is associated with encryption. Here, the length of the public key determines how
6969 * we handle the encryption and the format of the returned encrypted message.
7070 */
7171 if ( publicKeyHex . replace ( '0x' , '' ) . length !== 96 ) {
@@ -75,13 +75,14 @@ export const encrypt = async (
7575 publicKeyHex,
7676 } ,
7777 } ,
78- `Invalid public key length. Expecting 96 characters, got ${ publicKeyHex . replace ( '0x' , '' ) . length } instead.`
78+ `Invalid public key length. Expecting 96 characters, got ${
79+ publicKeyHex . replace ( '0x' , '' ) . length
80+ } instead.`
7981 ) ;
8082 }
8183 return Buffer . from (
8284 await blsEncrypt ( 'Bls12381G2' , publicKey , message , identity )
8385 ) . toString ( 'base64' ) ;
84-
8586} ;
8687
8788/**
You can’t perform that action at this time.
0 commit comments