-
Notifications
You must be signed in to change notification settings - Fork 24
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
Add support for CIP36 governance registration format #137
Conversation
when i try to generate metadata with the current commit i always end up with EDIT: after a few discussions, the decision was made that multiple vote-key entries are valid. i currently check for the following conditions in cardano-signer:
exporting the governance public key via the cardano-app version (https://github.com/vacuumlabs/ledger-app-cardano-shelley/tree/governance) for path generating the voting keys via the old method (https://github.com/vacuumlabs/cardano-hw-cli/blob/afcd46e15929c62aaca06a983de9500339daee2b/docs/catalyst-voting-registration-example.md#create-catalyst-voting-keys) is obsolete now, they must be derived from cardano-hw-cli address key-gen \
--path 1694H/1815H/0H/0/0 \
--verification-key-file "gov.voting.vkey" \
--hw-signing-file "gov.voting.hwsfile" as discussed in the slack channel, it would be cool if the vkey file gets the description "Governance Hardware Verification Key" and "Governance Hardware Signing File". like: Hardware-Voting-Signing-Key: gov.voting.hwsfile {
"type": "PaymentHWSigningFileShelley_ed25519",
"description": "Governance Hardware Signing File",
"path": "1694H/1815H/0H/0/0",
"cborXPubKeyHex": "58400186abff41121414f856fd8cf613399f9a30e413bb1c75c2413f46121f020349d8426b745ca51de4f5bc02f3f403288a5457fc480c11b2af5df1703ce9170d8f"
} Hardware-Voting-Public-Key: gov.voting.vkey {
"type": "PaymentVerificationKeyShelley_ed25519",
"description": "Governance Hardware Verification Key",
"cborHex": "58200186abff41121414f856fd8cf613399f9a30e413bb1c75c2413f46121f020349"
} Not sure if the type should also be changed? Also, vote-public-keys derived on the CLI via cardano-address for path {
"type": "PaymentExtendedVerificationKeyShelley_ed25519_bip32",
"description": "Governance Verification Key",
"cborHex": "5840c2cd50d8a231fbc1444d65abab4f6bf74178e6de64722558eeef0b73de293a8a3e852c83508c7d300593734ec84351c3d1916d00571a57f3c0f63a7c972eb299"
} So reading in the vote-public-key from such files should only read the non-extended part of the public-key. Otherwise your internal length check would fail. Sorry for the SPAM 😉 |
@davidmisiak any updates on that front? |
@janmazak as it looks like the common sense is that we allow any payment address to be used for the rewards address (was a stake address before), so the Will the Should the whole function category moved from catalyst to a general governance naming? |
c16bdb1
to
c405f5d
Compare
is there a way to add --vote-public-key-string as input options? including the hw-cli in automated env is a bit hard when you have to write out all keys into files first and than referencing those files on the hw-cli call. if not possible, there is a solution. just asking. |
37c42a9
to
293ab5b
Compare
1787961
to
75122ae
Compare
be05198
to
243b409
Compare
243b409
to
bdd7dde
Compare
Some bugs found -> #143 (comment) |
I did some testing using the --vote-public-key-string parameters. Used 7 vote-keys (with doubles) with different weights, etc. I compared the generated cbor file with the one that i generated with my cardano-signer tool. For that i derived the ledger keys to normal cli keys first, so i had them as normal signing/verification keys. Result, the generated cbor files are absolutely identical. 🥳 |
* remove code related to internal hw-cli tx format * Remove extra exclamation marks * Remove old items from autocomplete.sh * Rename signing validation to witnessing validation * Add description to test/unit/commandParser/res/tx.raw * Update interop-lib * Change tx format in trezor tests * Change tx format in cli tx files * Add comments about manual test conversion Co-authored-by: David Misiak <[email protected]>
cb5123e
to
8bb4ae3
Compare
TODO:
@ts-ignore
s)@trezor/connect
,@trezor/transport
)catalyst-voting-registration-example.md