def parse_version_fields
import qasim-bend-kit@0.1.0.2/libs/AES256GCM.bend as AES256GCMimport Base
532def parse_version_fields(fields: List<&2, String>) -> Result<&2, &2, Error, Envelope>:
533 match fields:
534 case version <> nonce_text <> tag_text <> ciphertext_text <> Nil{}:
535 parse_decoded_hex(decode_hex(nonce_text), decode_hex(tag_text), decode_hex(ciphertext_text))
536 case _: Fail{InvalidEnvelope{}}