API reference for PrivoraClient
use privora_sdk_client::prelude::*; let privora = PrivoraClient::new("http://localhost:8899").await?;
pub async fn new(url: &str) -> Result<Self>
pub fn encryptor(&self) -> &FheEncryptor
pub fn user_crypto(&self, keypair: &Keypair) -> Result<UserCrypto>
pub async fn submit<T>(&self, encrypted: &ClientEncrypted<T>) -> Result<[u8; 32]>
pub async fn submit_batch<T>(&self, values: &[ClientEncrypted<T>]) -> Result<Vec<[u8; 32]>>
pub async fn get_fhe_data(&self, hash: &[u8; 32]) -> Result<Vec<u8>>
pub fn transaction(&self) -> TransactionBuilder
pub async fn get_balance(&self, pubkey: &Pubkey) -> Result<u64>
pub async fn request_airdrop(&self, pubkey: &Pubkey, lamports: u64) -> Result<String>
pub async fn get_latest_blockhash(&self) -> Result<Hash>
pub async fn get_minimum_balance_for_rent_exemption(&self, data_len: usize) -> Result<u64>