class Decrypt(BaseSchema): label = fields.Label(required=True, load_only=True, click=options.option_label(required=True)) message_kit = fields.UmbralMessageKit( load_only=True, click=options.option_message_kit(required=True)) # output cleartexts = fields.List(fields.Cleartext(), dump_only=True)
class Decrypt(BaseSchema): label = character_fields.Label( required=True, load_only=True, click=options.option_label(required=True)) message_kit = character_fields.MessageKit( load_only=True, click=options.option_message_kit(required=True)) # output cleartexts = base_fields.List(character_fields.Cleartext(), dump_only=True)
class RetrieveAndDecrypt(BaseSchema): alice_verifying_key = character_fields.Key( required=True, load_only=True, click=options.option_alice_verifying_key(required=True)) message_kits = base_fields.StringList(character_fields.MessageKit(), required=True, load_only=True, click=options.option_message_kit( required=True, multiple=True)) encrypted_treasure_map = EncryptedTreasureMap( required=True, load_only=True, click=options.option_treasure_map) # output cleartexts = base_fields.List(character_fields.Cleartext(), dump_only=True)
class Retrieve(BaseSchema): label = fields.Label( required=True, load_only=True, click=options.option_label(required=True)) policy_encrypting_key = fields.Key( required=True, load_only=True, click=options.option_policy_encrypting_key(required=True)) alice_verifying_key = fields.Key( required=True, load_only=True, click=click.option( '--alice-verifying-key', help="Alice's verifying key as a hexadecimal string", type=click.STRING, required=True)) message_kit = fields.UmbralMessageKit( required=True, load_only=True, click=options.option_message_kit(required=True)) cleartexts = fields.List(fields.Cleartext(), dump_only=True)