diff --git a/zk-token-sdk/src/encryption/aes.rs b/zk-token-sdk/src/encryption/aes.rs index 9fadb75641..f36762a5a3 100644 --- a/zk-token-sdk/src/encryption/aes.rs +++ b/zk-token-sdk/src/encryption/aes.rs @@ -81,6 +81,10 @@ impl AesKey { pub fn encrypt(&self, amount: u64) -> AesCiphertext { Aes::encrypt(self, amount) } + + pub fn decrypt(&self, ct: &AesCiphertext) -> Option { + Aes::decrypt(self, ct) + } } #[derive(Debug)]