@ledgerhq/live-cli 24.30.0-nightly.20251210114107 → 24.30.0-nightly.20251211024123

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/lib/cli.js +18 -2
  2. package/package.json +3 -3
package/lib/cli.js CHANGED
@@ -543580,7 +543580,7 @@ var require_package8 = __commonJS({
543580
543580
  module2.exports = {
543581
543581
  name: "@ledgerhq/live-common",
543582
543582
  description: "Common ground for the Ledger Live apps",
543583
- version: "34.55.0-nightly.20251210114107",
543583
+ version: "34.55.0-nightly.20251211024123",
543584
543584
  repository: {
543585
543585
  type: "git",
543586
543586
  url: "https://github.com/LedgerHQ/ledger-live.git"
@@ -543917,7 +543917,7 @@ var require_package9 = __commonJS({
543917
543917
  "package.json"(exports2, module2) {
543918
543918
  module2.exports = {
543919
543919
  name: "@ledgerhq/live-cli",
543920
- version: "24.30.0-nightly.20251210114107",
543920
+ version: "24.30.0-nightly.20251211024123",
543921
543921
  description: "ledger-live CLI version",
543922
543922
  repository: {
543923
543923
  type: "git",
@@ -821625,6 +821625,7 @@ var INS_SIGN_TX = 4;
821625
821625
  var INS_GET_CONF = 6;
821626
821626
  var INS_SIGN_HASH = 8;
821627
821627
  var INS_SIGN_SOROBAN_AUTHORIZATION = 10;
821628
+ var INS_SIGN_MESSAGE = 12;
821628
821629
  var APDU_MAX_PAYLOAD = 255;
821629
821630
  var SW_DENY = 27013;
821630
821631
  var SW_HASH_SIGNING_MODE_NOT_ENABLED = 27750;
@@ -821725,6 +821726,21 @@ var Str = class {
821725
821726
  const resp = await this.sendToDevice(INS_SIGN_HASH, payload);
821726
821727
  return { signature: resp };
821727
821728
  }
821729
+ /**
821730
+ * Sign a message.
821731
+ *
821732
+ * @param path a path in BIP 32 format
821733
+ * @param message the message to sign
821734
+ * @return an object with the signature
821735
+ * @example
821736
+ * str.signMessage("44'/148'/0'", message).then(o => o.signature)
821737
+ */
821738
+ async signMessage(path4, message2) {
821739
+ const pathBuffer = pathToBuffer2(path4);
821740
+ const payload = Buffer.concat([pathBuffer, message2]);
821741
+ const resp = await this.sendToDevice(INS_SIGN_MESSAGE, payload);
821742
+ return { signature: resp };
821743
+ }
821728
821744
  async sendToDevice(instruction, payload) {
821729
821745
  let response = Buffer.alloc(0);
821730
821746
  let remaining = payload.length;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ledgerhq/live-cli",
3
- "version": "24.30.0-nightly.20251210114107",
3
+ "version": "24.30.0-nightly.20251211024123",
4
4
  "description": "ledger-live CLI version",
5
5
  "repository": {
6
6
  "type": "git",
@@ -58,8 +58,8 @@
58
58
  "ts-node": "10.9.2",
59
59
  "tsup": "7.3.0",
60
60
  "yaml": "2.8.1",
61
- "@ledgerhq/types-cryptoassets": "^7.31.0-nightly.20251210114107",
62
- "@ledgerhq/types-live": "^6.91.0-nightly.20251210114107"
61
+ "@ledgerhq/types-cryptoassets": "^7.31.0-nightly.20251211024123",
62
+ "@ledgerhq/types-live": "^6.91.0-nightly.20251211024123"
63
63
  },
64
64
  "publishConfig": {
65
65
  "directory": "dist"