Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Tezos DID-Method #2564

Open
jdsika opened this issue Apr 3, 2024 · 7 comments
Open

Tezos DID-Method #2564

jdsika opened this issue Apr 3, 2024 · 7 comments
Assignees
Labels

Comments

@jdsika
Copy link

jdsika commented Apr 3, 2024

The Tezos-DID Method document is not maintained anymore see here.

! There is a call for maintainers !

It came up because I was updating the Chain Agnostic improvement proposals mentioned in #2523 for CAIP-2/10/122 and I realized that the Tezos DID URN was not correctly used in the credentials mentioned here.

After stating this in my issue I did also encounter the following w3c did-pkh-method-draft which correctly gives the examples like e.g.:
did:pkh:tezos:NetXdQprcVkpaWU:tz1TzrmTBSuiVHV2VfMnGRMYvTEPCP42oSM8

instead of currently incorrectly:
did:pkh:tz:tz1TzrmTBSuiVHV2VfMnGRMYvTEPCP42oSM8

The difference is that we should use the CAIP-10 compliant account-id correctly including the chain id

I think the correct way of the urn should be supported as well in Altme.

Best regards
Carlo

@ThierryThevenet
Copy link
Member

Hello
In practice I think we dont have hands on that as we use the Flutter Dart lib provided by Spruce for did:pkh in ldp_vc format.
The only place where we manage that is in the use of did:pkh with the vc_sd_jwt format

@jdsika
Copy link
Author

jdsika commented Apr 9, 2024

To clarify: It is actually two different topics

  1. Replace with CAIP-10 compliant URN:
    Old: did:pkh:tz:tz1TzrmTBSuiVHV2VfMnGRMYvTEPCP42oSM8
    New: did:pkh:tezos:NetXdQprcVkpaWU:tz1TzrmTBSuiVHV2VfMnGRMYvTEPCP42oSM8

  2. Do we even need a "did:tezos-Method" if there is a "did:pkh:tezos-method" ?

@ThierryThevenet
Copy link
Member

ThierryThevenet commented Apr 11, 2024

I think the did:tezos method is dead, nobody uses did:tezos in practice.
did:pkh is much more used
We can use did:pkh:tezos:NetXdQprcVkpaWU:tz1xxxxx for VC in jwt format (jwt_vc_json, jwt_vc_json-ld) but i think didkit does not support the new syntax so we cannot sign VC in json-ld format with linked data proof.

@ThierryThevenet ThierryThevenet self-assigned this Apr 11, 2024
@jdsika
Copy link
Author

jdsika commented Apr 19, 2024

That would be worth a try:

We can use did:pkh:tezos:NetXdQprcVkpaWU:tz1xxxxx for VC in jwt format (jwt_vc_json, jwt_vc_json-ld) but i think didkit does not support the new syntax so we cannot sign VC in json-ld format with linked data proof.

@ThierryThevenet
Copy link
Member

ThierryThevenet commented Apr 19, 2024

we already have it in jwt_vc_json format , we can change te credntialSubject.id and fix the "sub" which is incorrect in that one...

but it will require you to change the protocol to use OIDC4VP as this model is not supported by the previous protocol

that is what we have today
eyJhbGciOiJFUzI1NiIsInR5cCI6IkpXVCIsImtpZCI6ImRpZDpwa2g6dHo6dHoxaW5ReG9TcVJZVmFRN1lOdWlIZ1U1ZDZTa0p2a0JRS2tkI2Jsb2NrY2hhaW5BY2NvdW50SWQifQ.eyJpYXQiOjE3MTM1MjY2MTYsImV4cCI6MTcxMzUyNzYxNiwiaXNzIjoiZGlkOnBraDp0ejp0ejFpblF4b1NxUllWYVE3WU51aUhnVTVkNlNrSnZrQlFLa2QiLCJqdGkiOiJ1cm46dXVpZDpiZmUxMjMyOS05YjUwLTQxOWItYmM1OS0zYmM3YjNlMzlhODIiLCJzdWIiOiJkaWQ6cGtoOnR6OnR6MWluUXhvU3FSWVZhUTdZTnVpSGdVNWQ2U2tKdmtCUUtrZCIsInZjIjp7IkBjb250ZXh0IjpbImh0dHBzOi8vd3d3LnczLm9yZy8yMDE4L2NyZWRlbnRpYWxzL3YxIix7IlRlem9zQXNzb2NpYXRlZEFkZHJlc3MiOnsiQGNvbnRleHQiOnsiQHByb3RlY3RlZCI6dHJ1ZSwiQHZlcnNpb24iOjEuMSwiYWNjb3VudE5hbWUiOiJzY2hlbWE6aWRlbnRpZmllciIsImFzc29jaWF0ZWRBZGRyZXNzIjoic2NoZW1hOmFjY291bnQiLCJjcnlwdG9XYWxsZXRQYXlsb2F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9RaE96NFNRM2ZJd2dfTVJ1OExxNCJ9fX19.dOX-hsgKkRp2pXbjkuZHZJyl0jm_-5_362yaYQz8y-alZSJC2_g3SHiRbEhFWHk4fJkuqUhGTUoDQIzkDZettQ

@hawkbee1 hawkbee1 added the ASCS label May 3, 2024
@jdsika
Copy link
Author

jdsika commented Jul 3, 2024

I think I have to discuss this with @jfelixh

Are you sure it cannot be used with json-ld - did you test it?

@ThierryThevenet
Copy link
Member

The only lib we have to sign with did:pkh and jdon ld on flutter is the one provided by Spruce and it looks like they do not maintain it anymore. So the did:pkh is still the previous version with did:pkh:tz1 and no chain id

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants