This guide shows how to validate a on a device. As previously noted each Virgil Card contains a Digital signature that provides data integrity for the Virgil Card over its life-cycle. Therefore, developers can verify the Digital Signature at any time.
During the validation process we verify, by default, two signatures:
Additionally, developers can verify the .
See more information about the Virgil Card's signatures, with our Virgil Card Service endpoint.
Set up your project environment before you begin to validate a Virgil Card, with the getting started guide.
In order to validate the signature of the Virgil Card owner, , and the Application Server, we need to:
// initialize context with custom card verifiers.
$virgilApiContext = VirgilApiContext::create(
VirgilApiContext::AccessToken => '[YOUR_ACCESS_TOKEN_HERE]',
VirgilApiContext::CardVerifiers => [
// initialize High level Api
$virgilApi = new VirgilApi($virgilApiContext);
$aliceCards = $virgilApi->Cards->find(['alice']);