Skip to content
This repository was archived by the owner on Mar 11, 2025. It is now read-only.

Commit 27d98a8

Browse files
committed
add comment on the Pod ElGamal type constructors
1 parent a7aeb97 commit 27d98a8

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

libraries/pod/src/optional_keys.rs

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -282,10 +282,13 @@ mod tests {
282282

283283
const OPTIONAL_NONZERO_ELGAMAL_PUBKEY_LEN: usize = 32;
284284

285-
// Unfortunately, the `solana-zk-sdk` does not exporse a constructor interface
285+
// Unfortunately, the `solana-zk-sdk` does not expose a constructor interface
286286
// to construct `PodRistrettoPoint` from bytes. As a work-around, encode the
287287
// bytes as base64 string and then convert the string to a
288288
// `PodElGamalCiphertext`.
289+
//
290+
// The constructor will be added (and this function removed) with
291+
// `solana-zk-sdk` 2.1.
289292
fn elgamal_pubkey_from_bytes(bytes: &[u8]) -> PodElGamalPubkey {
290293
let string = BASE64_STANDARD.encode(bytes);
291294
std::str::FromStr::from_str(&string).unwrap()

0 commit comments

Comments
 (0)