@ledgerhq/hw-app-btc
Version:
Ledger Hardware Wallet Bitcoin Application API
16 lines • 663 B
JavaScript
;
var __importDefault = (this && this.__importDefault) || function (mod) {
return (mod && mod.__esModule) ? mod : { "default": mod };
};
Object.defineProperty(exports, "__esModule", { value: true });
exports.shouldUseTrustedInputForSegwit = void 0;
const semver_1 = __importDefault(require("semver"));
function shouldUseTrustedInputForSegwit({ version, name, }) {
if (name === "Decred")
return false;
if (name === "Exchange")
return true;
return semver_1.default.gte(version, "1.4.0");
}
exports.shouldUseTrustedInputForSegwit = shouldUseTrustedInputForSegwit;
//# sourceMappingURL=shouldUseTrustedInputForSegwit.js.map