spl_token_2022/extension/confidential_mint_burn/
mod.rs1use {
2 crate::extension::{Extension, ExtensionType},
3 bytemuck::{Pod, Zeroable},
4 solana_zk_sdk::encryption::pod::{
5 auth_encryption::PodAeCiphertext,
6 elgamal::{PodElGamalCiphertext, PodElGamalPubkey},
7 },
8};
9
10pub mod instruction;
12
13pub mod processor;
15
16pub mod verify_proof;
18
19#[cfg(not(target_os = "solana"))]
21pub mod account_info;
22
23#[derive(Clone, Copy, Debug, Default, PartialEq, Pod, Zeroable)]
25#[repr(C)]
26pub struct ConfidentialMintBurn {
27 pub confidential_supply: PodElGamalCiphertext,
29 pub decryptable_supply: PodAeCiphertext,
31 pub supply_elgamal_pubkey: PodElGamalPubkey,
33 pub pending_burn: PodElGamalCiphertext,
35}
36
37impl Extension for ConfidentialMintBurn {
38 const TYPE: ExtensionType = ExtensionType::ConfidentialMintBurn;
39}