diff --git a/zk-token-sdk/src/encryption/aes.rs b/zk-token-sdk/src/encryption/aes.rs new file mode 100644 index 0000000000..bb25931c15 --- /dev/null +++ b/zk-token-sdk/src/encryption/aes.rs @@ -0,0 +1,30 @@ + + +pub struct AES; +impl AES { + pub fn new() -> AESKey { + AESKey + } + + pub fn encrypt(sk: &AESKey, amount: u64) -> AESCiphertext { + AESCiphertext + } + + pub fn decrypt(sk: &AESKey, ct: &AESCiphertext) -> u64 { + 0_u64 + } +} + +pub struct AESKey; +impl AESKey { + pub fn encrypt(&self, amount: u64) -> AESCiphertext { + AES::encrypt(self, amount) + } +} + +pub struct AESCiphertext; +impl AESCiphertext { + pub fn decrypt(&self, sk: &AESKey) -> u64 { + AES::decrypt(sk, self) + } +}