# Is it possible to verify attributes of encrypted content?

Let's say that Alice has this information about her,

{ "name": "Alice", "age": 25, "eyes": "brown" }


which she encrypts with a key pair so that no one access this text.

Later she says Bob that her eyes are brown and Bob should be able to verify only that she has brown eyes, with other information remaining secret.

This mechanism would be similar to merkle tree partial info verification, except we have here the encrypted file not the tree.

Is it possible to partially verify that?

• Are you looking for an interactive protocol (e.g. Alice gives a ZKP that the encrypted record says her eyes are brown), or noninteractive (e.g. Bob, given a guess about Alice's eye color, is able to deduce from the encrypted record whether that guess is correct)? Aug 14 '19 at 15:13
• My question is about the interactive example Aug 14 '19 at 15:33
• Perhaps via a form of functional encryption? Still just academic research Aug 14 '19 at 15:41
• Would a zero-knowledge proof for the statement "I, Alice, know a key that decrypts said ciphertext to a JSON, and said JSON contains eyes: "brown"" suffice? Because for that, the answer to your question is "yes". Aug 14 '19 at 17:10
• Ruben De Smet yes, it is a good idea. Any suggestions about how to do that? Aug 14 '19 at 17:42