Skip to main content
European CommissionEBSI European Blockchain

3. Issue VC to invoke

Role: Entity

This step is performed by the Entity that manages the use case.

This guide explains how to issue a Verifiable Credential (VC) that authorizes users to interact with the deployed contract.

Prerequisites

  • The entity has successfully deployed a proxy contract (Step 2)
  • The entity has the necessary permissions to issue VCs

Steps

1. Open the CLI tool

Start the CLI and load your keys:

env test  # or pilot/production
using user ES256K did1 <private-key-ES256K> <did>
using user ES256 did1 <private-key-ES256> <did>

2. Issue the VC

Issue a Verifiable Credential with type VerifiableAuthorisationToInvoke:

vc: run issueVcInvoke <did> <contractAddress>

where:

  • did: The DID of the user who will receive the authorization
  • contractAddress: The address of the deployed proxy contract

3. Share the credential

Share the issued Verifiable Credential with the user. This credential contains the authorization needed to interact with the contract.

tip

The user now has a Verifiable Authorisation To Invoke credential and can proceed to interact with the contract.

note

The user will need this VC to obtain an access token from the authorization API before they can interact with the contract.