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:
app_public_key = VirgilBuffer.from_base64("[YOUR_APP_PUBLIC_KEY_HERE]")
# initialize High Level Api with custom verifiers
virgil = VirgilApi.new(context: VirgilContext.new(
card_verifiers: [VirgilCardVerifierInfo.new("[YOUR_APP_CARD_ID_HERE]", app_public_key)])
alice_cards = virgil.cards.find("alice")