Skip to content

Commit

Permalink
Merge pull request #63 from Concordium/fix-cis4
Browse files Browse the repository at this point in the history
Add missing events types
  • Loading branch information
DOBEN authored May 28, 2024
2 parents 5b6c40e + d4daed3 commit c9e55aa
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions source/CIS/cis-4.rst
Original file line number Diff line number Diff line change
Expand Up @@ -578,9 +578,9 @@ A custom event SHOULD NOT have a first byte colliding with any of the events def
A ``RegisterCredentialEvent`` event MUST be logged when a new credential is registered.
The event records the credential identifier, the credential type, and the corresponding schema reference.

The ``RegisterCredentialEvent`` event is serialized as: first a byte with the value of 249, followed by :ref:`CIS-4-CredentialHolderId` (``crednetial_id``), a reference to the credential schema :ref:`CIS-4-SchemaRef` (``schema_ref``), and a credential type :ref:`CIS-4-CredentialType` (``credential_type``) ::
The ``RegisterCredentialEvent`` event is serialized as: first a byte with the value of 249, followed by :ref:`CIS-4-CredentialHolderId` (``crednetial_id``), a reference to the credential schema :ref:`CIS-4-SchemaRef` (``schema_ref``), a credential type :ref:`CIS-4-CredentialType` (``credential_type``), and a reference to the credential metadata :ref:`CIS-4-MetadataUrl` (``metadata_url``) ::

CredentialEventData ::= (credential_id: CredentialHolderId) (schema_ref: SchemaRef) (credential_type: CredentialType)
CredentialEventData ::= (credential_id: CredentialHolderId) (schema_ref: SchemaRef) (credential_type: CredentialType) (metadata_url: MetadataUrl)
RegisterCredentialEvent ::= (249: Byte) (data: CredentialEventData)

``RevokeCredentialEvent``
Expand Down Expand Up @@ -643,8 +643,7 @@ The ``RevocationKeyEvent`` event is serialized as: first a byte with the value o

RevocationKeyAction ::= (0: Byte) // Register
| (1: Byte) // Remove
RevocationKeyEvent ::= (244: Byte) (action: RevocationKeyAction)

RevocationKeyEvent ::= (244: Byte) (public_key: PublicKeyEd25519) (action: RevocationKeyAction)

.. _CIS-4-issuer-metadata-json:

Expand Down

0 comments on commit c9e55aa

Please sign in to comment.