@codewarriorr/hw-app-btcv
Advanced tools
Comparing version 1.0.4 to 1.0.5
@@ -15,8 +15,9 @@ const passwordType = { | ||
throw new Error("btc.setPasswords invalid type=" + type); | ||
} | ||
} // const data = password.toString("hex"); | ||
const data = password.toString("hex"); | ||
const buffer = Buffer.from(password, "hex"); | ||
const p1 = passwordType[type]; | ||
const p2 = 0; | ||
const response = await transport.send(0xe0, 0xD8, p1, p2, data); | ||
const response = await transport.send(0xe0, 0xD8, p1, p2, buffer); | ||
return { | ||
@@ -23,0 +24,0 @@ response |
@@ -28,8 +28,9 @@ "use strict"; | ||
throw new Error("btc.setPasswords invalid type=" + type); | ||
} | ||
} // const data = password.toString("hex"); | ||
const data = password.toString("hex"); | ||
const buffer = Buffer.from(password, "hex"); | ||
const p1 = passwordType[type]; | ||
const p2 = 0; | ||
const response = await transport.send(0xe0, 0xD8, p1, p2, data); | ||
const response = await transport.send(0xe0, 0xD8, p1, p2, buffer); | ||
return { | ||
@@ -36,0 +37,0 @@ response |
{ | ||
"name": "@codewarriorr/hw-app-btcv", | ||
"version": "1.0.4", | ||
"version": "1.0.5", | ||
"description": "Ledger Hardware Wallet Bitcoin Vault Application API", | ||
@@ -5,0 +5,0 @@ "keywords": [ |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
677100