Options
All
  • Public
  • Public/Protected
  • All
Menu

Intermediate representation of the Virgil Card with contentSnapshot and snapshots of the signatures in UTF-8.

Hierarchy

  • RawSignedModel

Index

Constructors

constructor

  • Initializes a new instance of RawSignedModel.

    Parameters

    • contentSnapshot: string

      The content snapshot in UTF-8.

    • signatures: IRawSignature[]

      The signatures. If signatures themselves have snapshots, those must also be in UTF-8.

    Returns RawSignedModel

Properties

contentSnapshot

contentSnapshot: string

The content snapshot in UTF-8.

signatures

signatures: IRawSignature[]

The signatures. If signatures themselves have snapshots, those must also be in UTF-8.

Methods

exportAsJson

exportAsString

  • exportAsString(): string

toJSON

toJson

  • Returns a JSON-serializable representation of this model in the format it is stored in the Virgil Cards Service. (i.e. with contentSnapshot and snapshots of the signatures as base64 encoded strings.

    Returns IRawSignedModelJson

toString

  • toString(): string

Static fromJson

Static fromString