Closed perturbing closed 1 week ago
Workaround, given a script hash file dutchDrepCredential.hash
and the incorrect command (for a keyed credential)
cardano-cli conway governance drep update-certificate \
--drep-key-hash $(cat dutchDrepCredential.hash) \
--drep-metadata-url https://raw.githubusercontent.com/perturbing/DutchRep/main/data/drep.jsonld \
--drep-metadata-hash 7d67f3f455290b0ea2a7fa54144f3891a03697424945ee3621395a56663bdc67 \
--out-file update-dutchDutchCredential.cert
One can manipulate the output
cat update-dutchDutchCredential.cert
{
"type": "CertificateConway",
"description": "DRep Update Certificate",
"cborHex": "83128200581ce5ab37261b3d63600d566564879370aea031ea3108b0a6bd8cef58aa82784b68747470733a2f2f7261772e67697468756275736572636f6e74656e742e636f6d2f70657274757262696e672f44757463685265702f6d61696e2f646174612f647265702e6a736f6e6c6458207d67f3f455290b0ea2a7fa54144f3891a03697424945ee3621395a56663bdc67"
}
that matched to this with a pubkey credential to this
cat update-dutchDutchCredential.cert
{
"type": "CertificateConway",
"description": "DRep Update Certificate",
"cborHex": "83128201581ce5ab37261b3d63600d566564879370aea031ea3108b0a6bd8cef58aa82784b68747470733a2f2f7261772e67697468756275736572636f6e74656e742e636f6d2f70657274757262696e672f44757463685265702f6d61696e2f646174612f647265702e6a736f6e6c6458207d67f3f455290b0ea2a7fa54144f3891a03697424945ee3621395a56663bdc67"
}
Notice that the 8th character changed from 0 to 1 (as per this cddl)
cc @CarlosLopezDeLara
@perturbing Definitely an omission on our side. Thank you very much for bringing this up.
This is something we can work on @smelc.
What
The end user can update their script based drep via the cli
Why
Currently for
we have that
does not allow for scripts. Whereas
Does allow for a
--drep-script-hash
flag.Personas
Dreps
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 - https://github.com/input-output-hk/cardano-node/issues/4453