def result_ciphertext
import qasim-bend-kit@0.1.0.2/proof/AES_EncryptProof.bend as AESEncryptProofimport Base
import qasim-bend-kit@0.1.0.2/libs/AES256GCM.bend as AES
18def result_ciphertext(fallback: List<&2, U32>,
19 result: Result<&2, &2, AES.Error, AES.Envelope>) -> List<&2, U32>:
20 match result:
21 case Fail{error}: fallback
22 case Done{envelope}: AES.ciphertext(envelope)