Function revealRequestedStatements
- revealRequestedStatements<AttributeTag>(statements: RequestedStatement<AttributeTag>[], chosenAttributes: Partial<Record<AttributeTag, string>>): AtomicStatementV1<AttributeTag>[]
-
Type Parameters
-
AttributeTag extends string
Parameters
-
-
chosenAttributes: Partial<Record<AttributeTag, string>>
Map the requested statements into statements used as part of the verifiable presentation.
Statements such as
RevealAttributeare converted intoAttributeValueStatementwith the value from the chosen attributes.See
noRevealRequestedStatements when
RevealAttributestatements are not supported.Returns
The atomic statements to be used in a verifiable presentation
Throws
If requested statements contains reveal attribute for attribute tag not found in chosen attributes.