# Selective Disclosure Demo

1. [Step By Step Process](#id-1.-step-by-step-process)
2. [Demo Video](#id-2.-demo-video)

## 1. Step By Step Process

Please check the steps involved in performing Selective Disclosure functionality:

1. We need to select “Encrypted Verifiable Credential” option as an entity type while creating Schema.

![](https://501642358-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FbKnJV8vV7zUxRwKIsJKg%2Fuploads%2Fgit-blob-981c952d33d146d888886e7faadedcb9a31bb0f7%2F0%20\(5\).png?alt=media)

2. Some of the fields in schema can be marked as private (only when schema has Encrypted Verifiable Credential type):

![](https://501642358-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FbKnJV8vV7zUxRwKIsJKg%2Fuploads%2Fgit-blob-8d55585495eb38e977dda7205f78d394fa03610d%2F1%20\(1\)%20\(3\)%20\(1\).png?alt=media)

3. Encrypted Verifiable Credential will be published in IPFS with AES GCM encryption

Aes256Gcm.nIwedhii-6Wd5li2F6G7jVDTh1vBUrtOvWGBCMQ4NYHnZoY5\_FeAorxZKw7of4zFTw\_2XnRlzP88EPDIASw540waI5\_GsdfX87YYeDIlYV09eTGeg6nTT6VjKoKFDSKDFVgXXqmzXCX9Y9i\_vQbWRiUDeFNLhJrH6m452HBCWNFFeKjTeqJSM8fvPWum\_1rpdcZtQUjs0sdZTGFafx-6q\_woO4Fy0TMzq4I7ETUkN6qrdXn90grlwoAHiUNuIcnofqwfwNldnJRHX8aWJRTseudZYZzF\_XvX3078qC-JZy0Oh7iTvE-Ok\_OCPnhBYkWJduCr-9qp0ewYfESB40j9YnQ5Y44OmNQU36Isdagdg9RQ5RFDNZIBBlbY8kXeU474vb6riqjGWW-veXM6JsacOXxLgvdYN1JLrq947ruUvGg4Cq5OKnXQ9Db19mVzl46sa-26UgtIJgSuK1oWKEToV6QO\_aX-Qjg5naNv2M2oeg3Yn8ZEnHvlmeWowSmPKFGes5-X6dQyWnAKH5-Scc\_HWFqhY1KGzh\_\_VTpGbiwTlg1gjq4Zuzlk6ce0OcuTgVeSYuifUOu6T4C9qCKh5SfsTzHegRJ0-Q29bmCsHIKOUE9oeacIRozr5z-WG87o2ohveIV2Oz-ZJgU\_EplKNc9wu1WEQ88oWeiCPmssWI0pDy388\_4zy\_CMgzc9cxJ6frAoKPLzKr\_3aL-ORrOaSEAARv13W37XehmqyP230N4e\_h1hzS7lcgotb3d2ElLt3My1WuOLySylH1AV1BqYpZBniOui0KT-rxXfHDhIkwYwYx-4vrlfVtqOcC6QX84G9uL0DnshUXxBA\_\_0KciO4v8u6qSAhhX6ubnXGQNFZ9nsV1QhMg2EitufxcxRFeztjbTtL8aOKKGltOIXDY88-oc\_k4luVW3ByVgmaaapd7jnFarHLlV2O41GR8CtX-2\_i3LT\_5xU\_WAtZIolRZZNujr-rRoPy2sQSDQHgBI65KNufTyCWlpyVhD-c-UMN0GV3Qf1K0yAcqRJF3nSuhyxlxR\_mQ3D3TrtHgiWdGir-5BDEJ8rVpW77Okb6KqXU1X\_nyISm4moG5vvj4-uoiZ5LeKOrUE3sxFzmvvorXkiKr-\_AFgK7uI8wxThgeN5XJPnYsltqAqI2tqsLpP6kuBfaktQQi6ItJoFoms\_IK2bohewR8XKu4GgmFxBla76rZ1HkWbovj3JA-n4bW9C9A1G5nOshCuBHUn4TFHOCkzrRGVM7hwAW9Rh-4ZfovYiENu0gv6Dqm27Flnm6LTQ2IN2BQcH37WmFNNycVE5Qr2hKzIM6CSaeV3ukvg=.QUAAAAAFaXYADAAAAADFkFYv-x1EYD2iwcsFYXQAEAAAAACQLRr6flPBpSYZk-zlo82VAmFkAAUAAABub25lAAA=.Pbkdf2Hmac.S0EAAAAFaXYAFAAAAAC5tzmfz7TiZiEsE5cs5NOgv\_-H7BBpAOxRAAAQbAAgAAAAAmhhc2gABwAAAFNIQTI1NgAA

4. If VP contains Encrypted Verifiable Credential, fields marked as private will be automatically removed

## 2. Demo Video

[Youtube](https://youtu.be/e-PwXbQkGbo?si=pMpZ7nLNXs2TInEn\&t=121)
