The original verifiable credential.
The original proof.
An array of claims that are to be revealed. The id of the credentialSubject is always revealed.
A copy of the credential (without proof) where credentialSubject contains only selected claims and a copy of proof containing only salt entries for these.
const { proof, credential } = applySelectiveDisclosure(
originalCredential,
originalProof,
['name', 'address']
)
const derivedCredential = { ...credential, proof }
Helps with producing a derivative proof for selective disclosure of claims in credentialSubject.