-
Notifications
You must be signed in to change notification settings - Fork 16
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
[FEATURE] - extend drep id cmd so that it returns id in hex and bech32 for script based dreps. Use CIP105 #883
Comments
@CarlosLopezDeLara> something we can work on together maybe? |
Wait untill CIP129 or CIP105 is approved. |
This issue is stale because it has been open 30 days with no activity. Remove stale label or comment or this will be closed in 120 days. |
This issue is stale because it has been open 30 days with no activity. Remove stale label or comment or this will be closed in 120 days. |
This issue is stale because it has been open 30 days with no activity. Remove stale label or comment or this will be closed in 120 days. |
@smelc I've updated the ticket with the requirements to support CIP129, the original intent has been deprecated by latest changes to CIP105. Still need to wait for CIP129 to move from |
What
Extend
cardano-cli conway drep id
so that it returns drep id in hex and bech32 also for script based dreps.We should use Use CIP105so that the prefix for script based dreps should bedrep_script
EDIT:
Community tools are moving towards CIP129. In particular, the prefix drep_script is deprecated in the latest changes to CIP105. To ensure consistency with other tools we should adopt CIP129.
CIP129 states that:
For the case of DReps we have:
Key Type (Role)
t t t t . . . .
)0010....
Credential Type
The second half of the header (bits [3;0]) refers to the credential type which can have the values and types as summarized in the table below,
. . . . c c c c
)....0010
....0011
So, for the DRep verification key
we get the key-hash with:
This credential has Role DRep and type KeyHash, therefore, as per CIP129 we need to add the (binary) header
which in hex is:
Finally, we append the header to the keyhash and serialize as bech32 with
drep
prefix:and the round trip
Similarly, for a script based DRep:
This credential has Role DRep and type script hash, therefore we add the binary header
Convert that to hex, append it to the scriptHash and serialize as bech32 with the
drep
prefix:and the roundtrip
This will require modification to cardano-api.
Why
Personas
Definition of Done (DoD)
Sign-off
Related PRs
Acceptance Criteria
Acceptance Criteria & User Stories define here (or in a separate file (linked here) for a big feature)
Example - IntersectMBO/cardano-node#4453
The text was updated successfully, but these errors were encountered: