cardano-addresses icon indicating copy to clipboard operation
cardano-addresses copied to clipboard

CIP 0105 CLI support

Open paweljakubas opened this issue 1 year ago • 1 comments

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_coldandcc_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 avatar Jun 25 '24 13:06 paweljakubas

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

paweljakubas avatar Jun 26 '24 07:06 paweljakubas