Skip to content

Commit 7be533a

Browse files
Add zeroed default for ElGamalCiphertext (solana-labs#22639)
1 parent 95bbb70 commit 7be533a

File tree

1 file changed

+6
-0
lines changed
  • zk-token-sdk/src/zk_token_elgamal

1 file changed

+6
-0
lines changed

zk-token-sdk/src/zk_token_elgamal/pod.rs

+6
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,12 @@ impl fmt::Debug for ElGamalCiphertext {
1919
}
2020
}
2121

22+
impl Default for ElGamalCiphertext {
23+
fn default() -> Self {
24+
Self::zeroed()
25+
}
26+
}
27+
2228
#[derive(Clone, Copy, Default, Pod, Zeroable, PartialEq)]
2329
#[repr(transparent)]
2430
pub struct ElGamalPubkey(pub [u8; 32]);

0 commit comments

Comments
 (0)