Skip to content

Commit 5453dfa

Browse files
committed
fmt
1 parent f58a615 commit 5453dfa

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

packages/crypto/src/lib/crypto.ts

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff 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
/**

0 commit comments

Comments
 (0)