virgil_sdk.verification package

Submodules

virgil_sdk.verification.card_verification_exception module

exception virgil_sdk.verification.card_verification_exception.CardVerificationException[source]

Bases: Exception

Represents errors occurred during card validation.

virgil_sdk.verification.card_verifier module

class virgil_sdk.verification.card_verifier.CardVerifier[source]

Bases: object

The CardVerifier provides abstract for card verification process.

verify_card(card)[source]

Verify the specified card.

Parameters:card – The instance of Card to be verified.
Returns:True if card is verified, False otherwise

virgil_sdk.verification.verifier_credentials module

class virgil_sdk.verification.verifier_credentials.VerifierCredentials(signer, public_key_base64)

Bases: tuple

The VerifierCredentials provides a signer’s identifier and its public key in base64.

public_key_base64

Alias for field number 1

signer

Alias for field number 0

virgil_sdk.verification.virgil_card_verifier module

class virgil_sdk.verification.virgil_card_verifier.VirgilCardVerifier(crypto, verify_self_signature=True, verify_virgil_signature=True, white_lists=[])[source]

Bases: virgil_sdk.verification.card_verifier.CardVerifier

The VirgilCardVerifier represents card verification process.

verify_card(card)[source]

To verify the specified card.

To set up rule for verification of self signature use verify_self_signature. To set up rule for verification of virgil service signature use verify_virgil_signature. To set up Whitelists use white_lists.

Parameters:card – The instance of Card to verify.
Returns:True is card is verified according to set rules, otherwise False.
white_lists

Get white lists.

virgil_sdk.verification.white_list module

class virgil_sdk.verification.white_list.WhiteList[source]

Bases: object

The Whitelist implements a collection of VerifierCredentials that is used for card verification in VirgilCardVerifier.

verifiers_credentials

The collection of VerifierCredentials that is used for card verification in VirgilCardVerifier.

Module contents