<p>Based on the behaviour of their <a href="https://github.com/Coldcard/firmware/blob/6ffdee7a84da4148219a09cebe9acaea1539a8c3/testing/test_msg.py#L305" rel="nofollow noreferrer">test suite</a>, it should sign with the key at <code>m/5'</code>, and not attempt to coerce it into a prefix for a standard path.</p>

CC BY-SA 4.0
2024-07-31T19:20:30.657Z
2024-07-31T19:20:30.657Z
Raghav Sood
<p>I'm looking at the documentation for the Coldcard CLI and I'm a little confused as to what specifically the -p, --path TEXT command does. In the documentation, it says the following:</p>
<blockquote>
<p>% ckcc msg --help Usage: ckcc msg [OPTIONS] MESSAGE</p>
<p>Sign a short text message</p>
<p>Options:   -p, --path TEXT  Derivation for key to use<br />
-v, --verbose Include fancy ascii armour<br />
-j, --just-sig   Just the signature itself, nothing more<br />
--help           Show this message and exit.</p>
<p>% ckcc msg &quot;Hello world&quot; Hello world<br />
mp2SHbLDr5hg4tvKhaZGKzkf3GmzAuQCz1
H3wh0RIKoIcyRShkbMm5SbVoKaeMYlf4up7dvVfvP1c1N5FEXoBcjiiTNxR88ybpW3XlujHGhyCvy2/hnMtSE+c=</p>
</blockquote>
<p>Let's say I have a transaction with a single input with the path m/84'/0/0/1/0. If I were to, say, command --path m/5', would that then sign the transaction with the PRIVATE KEY at m/5' or would it sign it with m/5'/84'/0/0/1/0?</p>
<p>Thanks,
Myles</p>

<signature><bip174-psbt><cli><coldcard><hardened-derivation>
Need Coldcard CLI doc clarification
Myles Sherman
# Need Coldcard CLI doc clarification

(Asked by: username_0 on 2024-07-28)

I'm looking at the documentation for the Coldcard CLI and I'm a little confused as to what specifically the -p, --path TEXT command does. In the documentation, it says the following:

> % ckcc msg --help Usage: ckcc msg [OPTIONS] MESSAGE
>
> Sign a short text message
>
> Options: -p, --path TEXT Derivation for key to use  
> -v, --verbose Include fancy ascii armour  
> -j, --just-sig Just the signature itself, nothing more  
> --help Show this message and exit.
>
> % ckcc msg "Hello world" Hello world  
> mp2SHbLDr5hg4tvKhaZGKzkf3GmzAuQCz1
> H3wh0RIKoIcyRShkbMm5SbVoKaeMYlf4up7dvVfvP1c1N5FEXoBcjiiTNxR88ybpW3XlujHGhyCvy2/hnMtSE+c=

Let's say I have a transaction with a single input with the path m/84'/0/0/1/0. If I were to, say, command --path m/5', would that then sign the transaction with the PRIVATE KEY at m/5' or would it sign it with m/5'/84'/0/0/1/0?

Thanks,
Myles

**Tags:** signature, bip174-psbt, cli, coldcard, hardened-derivation


---

## 1 answers

### Answer by username_1 on 2024-07-31. Score: 1

Based on the behaviour of their [test suite](https://github.com/Coldcard/firmware/blob/6ffdee7a84da4148219a09cebe9acaea1539a8c3/testing/test_msg.py#L305), it should sign with the key at `m/5'`, and not attempt to coerce it into a prefix for a standard path.


---

