virgil_sdk.client.raw_signed_model module¶
-
class
virgil_sdk.client.raw_signed_model.
RawSignedModel
(content_snapshot, signatures=None)[source]¶ Bases:
object
The RawSignedModel provides transitional model of <see cref=”Card”/> and used by CardClient.
-
add_signature
(signature)[source]¶ Add signature to RawSignedModel list.
- Parameters
signature – Card signature.
- Raises
ValueError – Attempt to add existing signature.
-
property
content_snapshot
¶ Snapshot of RawCardContent.
-
classmethod
from_json
(raw_signed_model_json)[source]¶ Deserialize RawSignedModel from json representation.
-
classmethod
from_string
(raw_signed_model_string)[source]¶ Deserialize RawSignedModel from base64 encoded string.
-
classmethod
generate
(public_key, identity, created_at, previous_card_id=None)[source]¶ Generate card RawSignedModel.
- Parameters
public_key – Card public key bytes.
identity – Unique card identity.
created_at – Creation timestamp.
previous_card_id – Previous card ID.
- Returns
Generate RawSignedModel instance.
-
property
signatures
¶ A list of signatures.
-