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

CIP 0105 CLI support #261

Merged
merged 17 commits into from
Jul 5, 2024
Merged

CIP 0105 CLI support #261

merged 17 commits into from
Jul 5, 2024

Conversation

paweljakubas
Copy link
Collaborator

@paweljakubas paweljakubas commented Jun 25, 2024

This PR builds on top of the previous one and adds support of CIP 0105 to CLI. In particular the following was added:

  1. Support of derivation of all varieties of drep, cc_cold and cc_hot keys, namely extended signing keys, extended verification key and verification keys.
cardano-address key child 1852H/1815H/0H/5/0 < root.xsk > hot.xsk
cardano-address key public --with-chain-code < hot.xsk > hot.xvk
cardano-address key public --without-chain-code < hot.xsk > hot.vk
  1. Support of making hash from verification keys (both varieties):
cardano-address key hash < hot.xvk > hot
cardano-address key hash < hot.vk > hot
  1. Support for using drep, cc_cold and cc_hot keys, namely extended verification key and verification keys, and verification key hashes in scripts and producing validation, preimage and hash of the script.
cardano-address script validate "all [$(cat drep),active_from 5001]"
cardano-address script preimage "all [$(cat drep),active_from 5001]"
cardano-address script hash "all [$(cat drep),active_from 5001]"

All produced keys assume bech32 prefixes as specified in CIP-0105.

@paweljakubas paweljakubas self-assigned this Jun 25, 2024
@paweljakubas
Copy link
Collaborator Author

@angerman ci/* seems to be RED - do you know how to make it work?

Copy link
Contributor

@Crypto2099 Crypto2099 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Changes look good and inline with our goals. All checks are passed.

@Crypto2099 Crypto2099 merged commit dc0bfdc into master Jul 5, 2024
8 checks passed
@Crypto2099 Crypto2099 deleted the paweljakubas/adp-3375/cip-0105-cli branch July 5, 2024 16:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants