Skip to main content

Cardano Eternl Wallet Integration

Prerequisites

Generating DID from Eternl

./dms key did eternl:myaccount

result will be:

did:key:zE4MrBkkgDczQPwp789GPUJo26cxqtWSz8J47jQgakp7RnJKH

Generating Capabilities

Generating new capabilities:

./dms cap new eternl:myaccount

This will open the browser and ask you to sign a payload in order for dms to get a did from eternl signature.

This will create myaccount.cap file inside cap directory.

Granting with Eternl

./dms cap grant --cap /public --context eternl:myaccount did:key:z6MkngPHCGesTFB9SfKukYqGaDkp2fJUGiCcXKE9bg49ddfB --expiry 2030-01-02

This command will open the browser, and ask you first to sign a generic message which is for dms to load the current did from eternl signature, then it will open a second browser to sign the actual capability context to grant.

This will create a capability token with cardano signature format that can be consumed.

Demonstration Video

A demonstration video was recorded following the steps described in this README, showing the full process from DID generation with the Eternl Wallet to capability creation and granting. The video serves as a visual reference to complement the written documentation and can be accessed at https://drive.google.com/file/d/1VX66Ke6cyYBQS187ezYStuWYLLaAiKcr/view?usp=drive_link