Skip to content

Commit

Permalink
pinned the public key elsewhere too
Browse files Browse the repository at this point in the history
  • Loading branch information
CluEleSsUK committed Nov 10, 2024
1 parent 8b85a9c commit e4f9d2d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/blocklock.ts
Original file line number Diff line number Diff line change
Expand Up @@ -139,7 +139,7 @@ export class Blocklock {
* @param pk public key of the scheme
* @returns encrypted message
*/
encrypt(message: Uint8Array, blockHeight: bigint, pk: G2): Ciphertext {
encrypt(message: Uint8Array, blockHeight: bigint, pk: G2 = BLOCKLOCK_DEFAULT_PUBLIC_KEY): Ciphertext {
const identity = blockHeightToBEBytes(blockHeight)
return encrypt_towards_identity_g1(message, identity, pk, BLOCKLOCK_IBE_OPTS)
}
Expand Down

0 comments on commit e4f9d2d

Please sign in to comment.