Since Cosmos blockchains use prefixes for addresses, it is an advantageous address system to use as DID. So, after decomposing the address into prefix and remainder, we want to use it as a DID. And, like Ethereum, Cosmos would like to add the address of Cosmos to the property so that it can be verified by extracting the public key from the signature.
Cosmos blockchain address (prefix is dsrv)
dsrv1zp78zmtj4a7qvs4p2s08ngjn9rcwpaf5k9d0la
DID
did:dsrv:1zp78zmtj4a7qvs4p2s08ngjn9rcwpaf5k9d0la
blockchainAccountId for verification
cosmos:dsrv:1zp78zmtj4a7qvs4p2s08ngjn9rcwpaf5k9d0la
Since Cosmos blockchains use prefixes for addresses, it is an advantageous address system to use as DID. So, after decomposing the address into prefix and remainder, we want to use it as a DID. And, like Ethereum, Cosmos would like to add the address of Cosmos to the property so that it can be verified by extracting the public key from the signature.
Cosmos blockchain address (prefix is
dsrv
)dsrv1zp78zmtj4a7qvs4p2s08ngjn9rcwpaf5k9d0la
DID
did:dsrv:1zp78zmtj4a7qvs4p2s08ngjn9rcwpaf5k9d0la
blockchainAccountId for verification
cosmos:dsrv:1zp78zmtj4a7qvs4p2s08ngjn9rcwpaf5k9d0la
sample code https://github.com/OR13/lds-blockchain2021/pull/3
https://github.com/decentralized-identity/did-jwt/pull/205