[][src]Function ledger_hw_app_btc::wallet::sign_message

pub async fn sign_message<'_, '_, '_, T: Transport + Sync>(
    transport: &'_ T,
    path: &'_ DerivationPath,
    message: &'_ [u8]
) -> Result<(u8, Vec<u8>, Vec<u8>), AppError<T::Error>>

This command is used to sign message using a private key. If not paired with a secure screen, the message must be maximum 140 bytes long and ASCII printable (each byte of the message must be between 0x20 and 0x7e, both included) If not paired to a secure screen, the message it typed by the dongle along with a single usage transaction PIN when it’s power cycled. Otherwise the message can be reviewed by the user.