Is it possible to check prooved attributes? #1251
-
I was wondering whether exists already implemented in AFJ feature to check what values of attributes Prover passed. Let`s assume Issure requested a proofe with attribute "age", then it goes to Holder and he provides some Credential record with proper attribute, for example Credential saying our imaginary Holder is 21 y.o. Is it possible, as an Issuer, check the value in credential (21 y.o) to sell a beer if it is 21 or higher? Previously I thought it will be stored in ProofRecord received by agent.proofs.getById() when the state is "done", but I was wrong and the field "metadata", where I was seeking for value, in message was empty |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
Hi @oadamovskyi, you can access the specific data that was exchanged using This will return an object with the different messages and should include the presentation data |
Beta Was this translation helpful? Give feedback.
Hi @oadamovskyi, you can access the specific data that was exchanged using
agent.proofs.getFormatData
and pass the proofExchangeId.This will return an object with the different messages and should include the presentation data