Skip to content

Commit

Permalink
fix order of declaration of cfgs
Browse files Browse the repository at this point in the history
  • Loading branch information
samkim-crypto committed Dec 19, 2024
1 parent bda4976 commit 2e8377c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions zk-sdk/src/encryption/pod/elgamal.rs
Original file line number Diff line number Diff line change
Expand Up @@ -34,9 +34,9 @@ const ELGAMAL_CIPHERTEXT_MAX_BASE64_LEN: usize = 88;
const DECRYPT_HANDLE_MAX_BASE64_LEN: usize = 44;

/// The `ElGamalCiphertext` type as a `Pod`.
#[cfg_attr(target_arch = "wasm32", wasm_bindgen)]
#[derive(Clone, Copy, bytemuck_derive::Pod, bytemuck_derive::Zeroable, PartialEq, Eq)]
#[repr(transparent)]
#[cfg_attr(target_arch = "wasm32", wasm_bindgen)]
pub struct PodElGamalCiphertext(pub(crate) [u8; ELGAMAL_CIPHERTEXT_LEN]);

impl_wasm_bindings!(
Expand Down Expand Up @@ -90,9 +90,9 @@ impl TryFrom<PodElGamalCiphertext> for ElGamalCiphertext {
}

/// The `ElGamalPubkey` type as a `Pod`.
#[cfg_attr(target_arch = "wasm32", wasm_bindgen)]
#[derive(Clone, Copy, Default, bytemuck_derive::Pod, bytemuck_derive::Zeroable, PartialEq, Eq)]
#[repr(transparent)]
#[cfg_attr(target_arch = "wasm32", wasm_bindgen)]
pub struct PodElGamalPubkey(pub(crate) [u8; ELGAMAL_PUBKEY_LEN]);

impl_wasm_bindings!(POD_TYPE = PodElGamalPubkey, DECODED_TYPE = ElGamalPubkey);
Expand Down

0 comments on commit 2e8377c

Please sign in to comment.