Skip to main content

Share credential and presentation

Sharing verifiable credentials and presentations securely is a core feature of the Truvity platform. The platform uses DIDComm messaging for sharing credentials and presentations.

Example: Share a verifiable credential

To send a DIDcomm message that contains a verifiable credential (VC) or verifiable presentation(VP), use the send method:

await credential.send("targetId", privateKey.id);

Where targetId is the DID of the receiving party.

tip
  • If you want to send DIDComm messages between two accounts for testing purposes, you can sign up with a different email (or email alias) and use the DID of a new account.

  • To find the DID of your account, go to the Admin Panel and click DID of my tenant.

After you send the DIDComm message with credentials, presentations and/or files, the target wallet automatically receives the message and unpacks the content of the message to the wallet.