Skip to main content
Version: master

ADR 024: Decentralized Identifiers resolver


  • Jan 16th, 2024: First draft;
  • Jan 23th, 2024: First review;


ACCEPTED Not Implemented


This ADR proposes the integration of a new functionality into Desmos to resolve Desmos Profiles into DID documents, incorporating Decentralized Identifiers (DIDs) for enhanced digital identity verification.


Decentralized identifiers (DIDs) are a new type of identifier that enables verifiable, decentralized digital identity. Via verifiable credential, DID enables individuals to assert control over their personal information, aligning with principles of privacy, and user empowerment. Furthermore, as DIDs emerge as a universal standard, they are poised to play a pivotal role in identity authentication across various applications. Desmos serves as a decentralized social platform infrastructure, DID would contribute to an improved user experience in identity management.


We will implement a query method DidDoc within the Desmos Profiles module to resolve Desmos Profiles into DID documents. In addition, A DID that uses this method MUST begin with the following prefix: did:desmos.

The example of the resolver's response would be like as follows:

"context": [
"id": "did:desmos:<desmos-address>",
"alsoKnownAs": [
"dtag:<DTag>", /* Desmos Dtag */
"application:<application-name>:<id-in-application>", /* application link */
"blockchain:<chain-name>:<chain-address>", /* chain link */
"verificationMethod": [
"id": "did:desmos:<desmos-address>#DESMOS-KEY-1",
"type": "EcdsaSecp256k1VerificationKey2019",
"publicKeyMultibase": "<multibase-encoded-public-key>"
"authentication": [
"assertionMethod": [

Query service

service Query{
// DidDoc queries for a single DID document.
rpc DidDoc(QueryDidDocRequest) returns(QueryDidDocResponse) {
option (google.http.get) = "/desmos/profiles/v3/did/{id}";

// QueryDidDocRequest is the request type for the Query/DidDoc RPC method
message QueryDidDocRequest {
string id = 1;

// QueryDidDocResponse is the response type for the Query/DidDoc RPC method
message QueryDidDocResponse {
// URIs used to identify the context of DID document.
// Default: ["", ""]
repeated string context = 1;

// The unique identifier in DID syntax of DID document.
// Example: did:desmos:<desmos-address>
string id = 2;

// The assertion that resources refer to the DID.
// In Desmos, it shows chain links and application links linked to profile.
// Documentation:
string also_known_as = 3;

// Keys of verification methods for verifying digital signature.
// In Desmos, it must be the public key(s) that associated to the profile owner.
repeated VerificationMethod verification_methods = 4;

// Id of keys for authentication within verification methods.
// Documentation:
repeated string authentication = 5;

// Id of keys for assertion method within verification methods.
// Documentation:
repeated string assertion_method = 6;

// VerificationMethod represents the cryptographic public keys, which can be used to authenticate interaction.
// Documentation:
message VerificationMethod {
// Unique identifier in DID URL syntax.
// Example: did:desmos:<desmos-address>#DESMOS-KEY-1
string id = 1;

// Type of the verification method.
// Example: "EcdsaSecp256k1VerificationKey2019"
string type = 2;

// Hex-encoded of the public key in the multibase format.
// Documentation:
string public_key_multibase = 3;


Due to the necessity of public key(s) being directly controlled by the profile owner, any profile owner lacking public keys, such as those associated with a contract, cannot be resolved into a DID. Future versions may explore alternative methods to accommodate profiles without direct public key control, enhancing inclusivity.


Backwards Compatibility

The solution outlined above is fully backward compatible since we are just adding a new query method.


  • Enable the usage of Desmos in applications that support DID.


(none known)


(none known)

Further Discussions

To be compatible to DID universal resolver, we SHOULD implement resolver driver for Desmos in the future.