"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); const ripple_binary_codec_1 = require("ripple-binary-codec"); const ripple_keypairs_1 = require("ripple-keypairs"); const xrpConversion_1 = require("./xrpConversion"); function signPaymentChannelClaim(channel, amount, privateKey) { const signingData = (0, ripple_binary_codec_1.encodeForSigningClaim)({ channel, amount: (0, xrpConversion_1.xrpToDrops)(amount), }); return (0, ripple_keypairs_1.sign)(signingData, privateKey); } exports.default = signPaymentChannelClaim; //# sourceMappingURL=signPaymentChannelClaim.js.map