Encrypt private credential data
encryption
parameter to determine the encryption modality you will use. The possible values for this parameter are:
crossmint-recoverable
: This option is ideal when users prioritize the convenience and security of having a fallback recovery mechanism. Crossmint will take care of encrypting the credential. The user will be required to prove ownership of the subject wallet to decrypt the credential. As a fallback mechanism, the key is also shared with the credential issuer.decentralized-lit
: This option is better suited for users who prioritize full decentralization and privacy. The credential is encrypted and decrypted using the Lit protocol. The user will be required to prove ownership of the subject wallet to decrypt the credential.none
: The certificate is not encrypted.encryption
field part of the template creation request below is set to crossmint-recoverable
.
GET https://staging.crossmint.com/api/v1-alpha1/credentials/{credentialId}
GET credentials/{credentialId}
endpoint as the issuer will automatically decrypt the credential for
you and return both the clear and ciphertext.